48347 Commits

Author SHA1 Message Date
Alessandro Pasotti
f4ecbbfed0
Merge pull request #7210 from elpaso/bugfix-18656-layout-map-extent
[bugfix] Use locale representation for extent
2018-06-09 18:23:28 +02:00
Alessandro Pasotti
85e34f2c92 Fix test comparison 2018-06-09 18:21:14 +02:00
Alessandro Pasotti
a85f67ee91 Skip custom handling of decimal point if it's a dot 2018-06-09 18:21:14 +02:00
Alessandro Pasotti
f853c8d1d9 Respect locale decimal separator in input fields 2018-06-09 18:21:14 +02:00
Alessandro Pasotti
8c74ddebfa Added tests for locales other than english 2018-06-09 18:20:57 +02:00
Alessandro Pasotti
137bc4dbc2 [bugfix] Do not crash when removing a layout legend item
... when the layer was removed from the map, the legend
sync was disabled and the drawind order was enabled ...

Fixes #19145 Crash when deleting an item from the layout legend
2018-06-09 18:12:01 +02:00
Alessandro Pasotti
615d7a03f2 Use locale representation for extent
Fixes #18656 Print Layout: unable to manually modify the X and Y coordinates in the map Item properties panel
2018-06-09 17:31:39 +02:00
Nyall Dawson
23277284e7 [processing][gdal] Fix execution of hillshade with multidirectional argument
And add tests
2018-06-09 18:15:00 +10:00
Matthias Kuhn
c3747e9554 Add test to save and reload embedded groups 2018-06-09 09:43:56 +02:00
Alessandro Pasotti
e7df793d6a Set locale in the tests 2018-06-09 08:59:03 +02:00
Alessandro Pasotti
ec20ff78d1 Accept dot and comma as decimal point on input 2018-06-09 08:59:03 +02:00
Alessandro Pasotti
26280751a6 Try to convert doubles with comma as decimal point 2018-06-09 08:59:03 +02:00
Alessandro Pasotti
e56b72afbb Use displayString to get the formatted value 2018-06-09 08:59:03 +02:00
Alessandro Pasotti
3e44db5a04 Use QLocale when representing double fields 2018-06-09 08:59:03 +02:00
Denis Rouzaud
6d1d1498f7 fix documentation in QgsRectangle 2018-06-08 08:03:03 -04:00
Denis Rouzaud
932bcfd921 use unique_ptr and log message when transform fails 2018-06-08 08:02:48 -04:00
Even Rouault
289032bd25
Merge pull request #7207 from rouault/geojson_add
[OGR provider] Fix adding a new GeoJSON field, starting a new edit session and filling it (fixes #7205)
2018-06-08 13:55:51 +02:00
arnaud.morvan@camptocamp.com
9ebb646683 [server] Fix BBOX SRS in WFS GetFeature POST with two queries
Correctly transform featureRequest.filterRect in
WFS POST GetFeature request with multiple Query elements.
2018-06-08 13:11:14 +02:00
Even Rouault
82c2aaaa80
[OGR provider] Fix adding a new GeoJSON field, starting a new edit session and filling it (fixes https://github.com/qgis/QGIS/pull/7205) 2018-06-08 12:55:55 +02:00
Matthias Kuhn
96f7426946 Load layers within embedded groups
Fix #18380
2018-06-08 11:12:07 +02:00
Matthias Kuhn
e315ed6de5 Add test for embedded groups 2018-06-08 11:09:03 +02:00
Nyall Dawson
7f85ceea83 Add failing test for Geojson add field and then features 2018-06-08 16:38:27 +10:00
nirvn
b4cbfed47a Update copyright header for raster layer unique values alg 2018-06-08 12:19:45 +07:00
nirvn
918ac69bf2 [processing] share code between zonal histrogram and zonal stats algs 2018-06-08 12:19:45 +07:00
Nyall Dawson
827eee93df [processing] Fix feedback message in merge vector alg 2018-06-08 13:08:34 +10:00
Nyall Dawson
77786f38c3 [processing][SAGA] Fix interpolation choices for add grid values algorithms
And add more tests

Fixes #19132
2018-06-08 12:18:35 +10:00
Nyall Dawson
4444428133 Add some tooltips to diagram show properties
Refs #19109
2018-06-08 11:43:29 +10:00
Nyall Dawson
b1c894969e Fix data defined show diagram setting does not always work
Fixes #19109
2018-06-08 11:43:29 +10:00
Nyall Dawson
57c442a443 [layouts] Fix item_variables function with non-lowercase item ids
Fixes #19063
2018-06-08 11:11:55 +10:00
Nyall Dawson
262a01f53c Supress dos2unix output 2018-06-08 11:00:25 +10:00
Nyall Dawson
de38bf01ca Use a raster iterator for zonal stats, to optimise zonal stats
calculation of large zones with lots of corresponding raster pixels
2018-06-08 10:13:13 +10:00
Nyall Dawson
b637c7fe22 Prevent background execution of zonal stats
This algorithm is NEVER safe to run in the background, because
it directly modifies a layer in place.

We should:
- make a variant of this algorithm which returns a new layer
AND
- refactor the QgsZonalStats code to create a separate map
of feature->stats, and then modify the existing Zonal Stats
algorithm to apply these changes in a post processing step
2018-06-08 10:13:13 +10:00
Nyall Dawson
6bf7c0eb92 Better constructor, dox 2018-06-08 10:13:13 +10:00
Nyall Dawson
e97f0d3230 Update processing test results 2018-06-08 10:13:13 +10:00
Nyall Dawson
fc5eb96295 Make zonal statistics algorithm thread safe 2018-06-08 10:13:13 +10:00
Nyall Dawson
b533dd8e31 Fix zonal stats min/max values when pixel area is greater than
polygon area
2018-06-08 10:13:13 +10:00
Nyall Dawson
83d44b9fe9 Fix zonal statistics calculations when pixel size is greater than
polygon size

Fixes #17159
2018-06-08 10:13:13 +10:00
Nyall Dawson
985aee6920 Fix incorrect calculation of zonal statistics
Raster block extent was based on intersection of raster vs
feature's bounding box, which was not necessarily snapped to
multiples of the pixel size. But the pixel center point/extent
was being calculated as though the retrieved extent was an
exact multiple of the pixel size. This led to incorrect
retrieval of pixel values.
2018-06-08 10:13:13 +10:00
Nyall Dawson
e9bf7f17c7 Add thread safe method of constructing QgsZonalStatistics,
using a QgsRasterInterface instead of a QgsRasterLayer
2018-06-08 10:13:13 +10:00
Nyall Dawson
8ddab4476a Ensure zonal stats respsects all user set no data values 2018-06-08 10:13:13 +10:00
Nyall Dawson
839139619c Minor refactoring, avoid use of old style cast 2018-06-08 10:13:13 +10:00
Nyall Dawson
ff9e7ba328 Use prepared geometries to check for intersection between
pixel rectangles and polygons when doing exact statistics
calculations in zonal stats

Sppeds up zonal stats calculation by ~10x when pixel size
is large (compared to polygon sizes)
2018-06-08 10:13:13 +10:00
Nyall Dawson
43d85675c9 Avoid use of raw GEOS API 2018-06-08 10:13:13 +10:00
Nyall Dawson
1631a8269a Use doubles, not float values, within zonal stats 2018-06-08 10:13:13 +10:00
Nyall Dawson
919f558877 Use unique_ptr 2018-06-08 10:13:13 +10:00
Nyall Dawson
f6fa022910 Fix missing definition in data defined buttons
Fixes #19110
2018-06-08 10:09:39 +10:00
Nyall Dawson
da89f18ed1 Fix some clazy eventFilter warnings 2018-06-08 10:04:01 +10:00
Nyall Dawson
719adfa511 Capitalization 2018-06-08 09:59:59 +10:00
Nyall Dawson
b95375a42b Use standard crosshair cursor in layouts 2018-06-08 09:55:34 +10:00
Loïc Bartoletti
048db933a6 remove specific cursor for QgsMeasureTool 2018-06-08 09:54:52 +10:00