Nyall Dawson
24a9c522e3
Move qgsAsConst to qgis::as_const
...
So it's more inline with the std::as_const implementation which
it fills in for, and allows us to 'polyfill' other c++>11
features into the qgis:: namespace.
2017-10-13 19:47:37 +10:00
Mathieu Pellerin
b250729e46
[3d] add show labels toggle, default to off ( #5361 )
2017-10-13 16:44:38 +07:00
Nyall Dawson
1852d2b8bf
Fix travis build
2017-10-13 19:18:55 +10:00
Nyall Dawson
e13a4aaa31
Cleanup some loops
2017-10-13 19:18:55 +10:00
Nyall Dawson
b922166d6e
Rework internal geometry memory management
...
Use unique_ptrs wherever possible, and cleanup geometry
detachments
2017-10-13 19:18:55 +10:00
nirvn
25d40f367d
layer tree & 3d view toolbar panel size fix
2017-10-13 14:54:41 +07:00
Martin Dobias
ca0aa72bf1
[needs-docs] Remove OpenStreetMap integration in analysis lib + app
...
- unmaintained and barely working anymore
- clunky GUI
- not supporting .pbf
- there are other python plugins doing the same thing better
- nobody is using it anymore
https://lists.osgeo.org/pipermail/qgis-developer/2017-October/050103.html
2017-10-13 09:39:47 +02:00
Martin Dobias
a170dcb0a6
Fix dragging 3D view with mouse when camera is far
...
Before, when looking at a greater area (e.g. spanning 200km or more),
dragging 3D view with left mouse button would not work at all. Only
when zoomed in more it would start working again.
This was cause by unproject() method in Qt having tolerance against division
by zero very high. Lowering the tolerance by few magnitudes fixed the problem (1e-5 to 1e-10)
2017-10-13 09:37:38 +02:00
James Shaeffer
b740a89cba
Updated the transparency widget to fix bug #16649 ( #5358 )
2017-10-13 11:20:23 +07:00
nirvn
873b4b0882
[3d view] harmonize panel icon size
2017-10-13 10:19:43 +07:00
Nyall Dawson
9a3b547d33
Merge pull request #5330 from nyalldawson/layout_next
...
[layouts] Port group handling
2017-10-13 13:02:44 +10:00
Nyall Dawson
f6ee7cb0a1
Merge pull request #5344 from nyalldawson/algs
...
[processing] Port some algs to c++, minor improvements
2017-10-13 09:58:12 +10:00
Nyall Dawson
d39427b827
Fix build warning
2017-10-13 08:36:27 +10:00
Nyall Dawson
18f85d9e54
Port drop M/Z algorithm to c++
2017-10-13 08:30:12 +10:00
Nyall Dawson
b5197c8c53
Port drop geometries to c++
2017-10-13 08:29:37 +10:00
Nyall Dawson
2951afa324
Port boundary algorithm to c++
...
Also allow feature based algorithms to customise their appectable
input layers types and set suitable filters for all applicable
algorithms
2017-10-13 08:28:34 +10:00
Nyall Dawson
97c1b0d322
[FEATURE] Port autoincremental field to c++
...
Also add:
- support for setting initial value for field to start at
- support for user-set field names (instead of always using 'AUTO')
2017-10-13 08:26:36 +10:00
Nyall Dawson
61dc8ea28f
[FEATURE][processing] New 'assign projection' algorithm
...
This algorithm assigns a new projection to a vector layer.
It creates a new layer with the exact same features and
geometries as the input one, but assigned to a new CRS.
E.g. the geometries are not reprojected, they are just
assigned to a different CRS.
This algorithm can be used to repair layers which have
been assigned an incorrect projection.
2017-10-13 08:26:36 +10:00
Nyall Dawson
bd24c8b664
Allow selection of a subset of fields to keep for hub lines algorithm
2017-10-13 08:26:36 +10:00
Nyall Dawson
cc19d0a70d
Port hub lines algorithm to c++
...
Also:
- optimise a bit
- retain z/m values
- use point on surface for non-point layers, instead of
center of geometry bounding box
2017-10-13 08:26:36 +10:00
Nyall Dawson
cac171a2e0
Port Join Attributes to c++, add option to select subset of fields to copy
2017-10-13 08:26:36 +10:00
Mathieu Pellerin
edf734677e
[processing] use a vector feature source for gdal clip raster by mask ( #5351 )
2017-10-12 22:08:34 +07:00
Martin Dobias
5b74bdfe21
Fix numerical problems in the tessellator
...
Due to the recent changes to allow non-horizontal surfaces, tessellator was loosing precision
in float math with large numbers, so there could be artefacts on extruded buildings between roof and walls
Also clean up the code a bit - move stuff out of the main method + remove some duplicate code
2017-10-12 13:52:12 +02:00
Alexander Bruy
d97a51b532
Merge pull request #5243 from alexbruy/processing-gdal
...
[processing] restore GDAL algorithms
2017-10-12 08:00:20 +03:00
Nyall Dawson
0028486a96
Merge pull request #5185 from nyalldawson/materialize
...
QgsFeatureSource::materialize experiment
2017-10-12 13:58:44 +10:00
Harrissou Sant-anna
5f401815c3
Fix duplicate widget name
2017-10-12 13:54:21 +10:00
Mathieu Pellerin
8fd3733446
[processing] use raster iterator in raster layer unique values report ( #5343 )
2017-10-12 10:52:11 +07:00
Etienne Trimaille
098611c3f6
add helper to build a QgsRectangle from a WKT string
2017-10-12 06:32:02 +10:00
Harrissou Sant-anna
c6565da36f
[needs-docs] Move Locale tab to General tab
2017-10-11 21:47:39 +02:00
Martin Dobias
5515d68219
[FEATURE] Data-defined extrusion and height for 3D polygon symbols
...
... because buildings with even heights are boring!
2017-10-11 21:17:16 +02:00
Alexander Bruy
ea7ca58442
[processing] add second hash for linear grid interpolation test
2017-10-11 17:55:26 +03:00
Alexander Bruy
c0e47a71ae
[processing] disable test for script-based algorithms as GDAL scripts
...
are not available on Travis
2017-10-11 17:06:11 +03:00
Alexander Bruy
21e4fc515e
[processing] exclude location field from check
2017-10-11 17:06:11 +03:00
Alexander Bruy
49f9ceef1a
[processing] disable clip by polygon tests as they pass locally but
...
fail on Travis with TopologyException
ERROR 1: TopologyException: Input geom 1 is invalid: Self-intersection
at or near point 2 -1 at 2 -1
2017-10-11 17:06:11 +03:00
Alexander Bruy
2104b273af
[processing][API]introduce QgsProcessingOutputFile output and fix gdal2xyz test
2017-10-11 17:06:11 +03:00
Alexander Bruy
79c26c384d
[processing] fix execute sql test
2017-10-11 17:06:11 +03:00
Alexander Bruy
4ac442f5a3
[processing] fix test for clip vector by mask algorithms
2017-10-11 17:06:11 +03:00
Alexander Bruy
f65de2caa9
[processing] fix clip by extent tests
2017-10-11 17:06:11 +03:00
Alexander Bruy
97238fd687
[processing] fix SQL-based geoprocessing tools and tests
2017-10-11 17:06:11 +03:00
Alexander Bruy
e165d45a0f
[processing] fix GDAL raster tests
2017-10-11 17:06:11 +03:00
Alexander Bruy
613852758e
fix indentation
2017-10-11 17:06:11 +03:00
Alexander Bruy
c4c780fa04
[processing] tests for clipping (raster and vector) algorithms
2017-10-11 17:06:11 +03:00
Alexander Bruy
67265c64c1
[processing] reproject extent into input CRS where possible
2017-10-11 17:06:11 +03:00
Alexander Bruy
2c50fd8dd8
[processing] use feature source in the interpolation algorithms
2017-10-11 17:06:11 +03:00
Alexander Bruy
874c7f545e
[processing] fix copy-paste error in Execute SQL
2017-10-11 17:06:11 +03:00
Alexander Bruy
1ece552c40
[processing] fix import
2017-10-11 17:06:11 +03:00
Alexander Bruy
ff75873eb8
[processing] tests for OGR-based algorithms
2017-10-11 17:06:11 +03:00
Alexander Bruy
fd12d29615
[processing] restore gdal_merge algorithm
2017-10-11 17:06:11 +03:00
Alexander Bruy
68863a9c5d
[processing] restore Execure SQL algorithm
2017-10-11 17:06:11 +03:00
Alexander Bruy
fb958df64f
[processing] restore dissolve algorithm
2017-10-11 17:06:11 +03:00