5816 Commits

Author SHA1 Message Date
Alessandro Pasotti
4e37f381de
Merge pull request #7188 from elpaso/locale-formatting
[bugfix] Fix double precision I/O in form widgets
2018-06-12 08:32:52 +02:00
Luigi Pirelli
f4065d8aed
Merge pull request #6647 from luipir/certs_not_removed_with_pki_postgis_on_win_port3
Certs not removed with pki postgis on win port3
2018-06-12 00:11:03 +02:00
Alessandro Pasotti
bf2542e8ea Also load .qgz files 2018-06-11 14:45:40 +02:00
Ismail Sunni
a9b25ed9f0 Add missing include to make it buildable in MacOS. 2018-06-11 20:03:08 +10:00
Mathieu Pellerin
0a325f1eda
Avoid signalling repaint / data signals when a setSubsetString doesn't actually change (#7217)
Behavior across providers harmonized & test added.
2018-06-11 15:52:23 +07:00
Matthias Kuhn
6e3ee46414
Merge pull request #7206 from m-kuhn/fix18380
Fix loading layers within embedded groups
2018-06-11 10:31:33 +02:00
Nyall Dawson
ce6ea18280 Dox and indentation updates 2018-06-11 12:55:20 +10:00
Nyall Dawson
a3d6b9899b Refined tests for QgsProject::transactionGroup() 2018-06-11 12:55:20 +10:00
C. Marcel
b88c2f42ea Add QgsProject::transactionGroup() available & with Python bindings. 2018-06-11 12:55:20 +10:00
Nyall Dawson
590b3806a5 Fix failing test 2018-06-11 12:40:26 +10:00
Denis Rouzaud
a98e7a141a add test to ensure scale lock is respected on canvas resize 2018-06-11 12:40:26 +10:00
Alessandro Pasotti
85b9d37fa8 Use QLocale to parse string representation of numbers
Because we now might have thousand separators, also
fixes the NULL issue reported by DelazJ.

Comes with many test cases.
2018-06-10 16:30:20 +02:00
Alessandro Pasotti
cb3eb96138 Fix test, because we only accept comma for compatible locales 2018-06-09 18:42:25 +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
8c74ddebfa Added tests for locales other than english 2018-06-09 18:20:57 +02: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
3e44db5a04 Use QLocale when representing double fields 2018-06-09 08:59:03 +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
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
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
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
8ddab4476a Ensure zonal stats respsects all user set no data values 2018-06-08 10:13:13 +10:00
Alessandro Pasotti
51ae8e9e97
Merge pull request #7195 from elpaso/bugfix-18981-export-qlr-crash-2
[bugfix] Crash when exporting (invalid) legend to qlr
Fixes #18981
2018-06-07 09:55:25 +02:00
Alessandro Pasotti
b307f39f63 Added broken qlr file for the test case 2018-06-07 09:05:16 +02:00
Alessandro Pasotti
ad49cfb3a4 Add test for QgsLayerDefinition (regression #18981) 2018-06-07 08:18:59 +02:00
Denis Rouzaud
b2274258a4 fix sip test
only check for Python file if it is produced
2018-06-05 17:02:17 -08:00
Blottiere Paul
0e7238448a
Merge pull request #7078 from arnaud-morvan/server_proper_literal_convertion
[server] Proper convertion of literals in Filters
2018-06-05 16:22:08 +01:00
Nyall Dawson
88a49e7e33 Fix zonal stats doesn't work with raster/vector in different CRS
Fixes #19027
2018-06-05 23:04:58 +10:00
arnaud.morvan@camptocamp.com
b07c334723 [server] Proper convertion of literals in Filters
Convert OGC Filter's literals accordings to field type.
This can have a huge impact on performance in some cases.
For example for a filter like "num_char" = '+2' converted to "num_char" = 2,
this result with PostgreSQL provider in a fallback to client side evaluation for the whole filter,
including the bbox if present.
2018-06-05 14:26:37 +02:00
Even Rouault
e94b1acd77
[OGR provider] Complementary fix for #18596, related to adding a new field to a GeoJSON file 2018-06-05 14:26:23 +02:00
Alessandro Pasotti
e3f02eac72
Merge pull request #7012 from elpaso/python-provider
Python provider QEP 122
2018-06-05 12:51:17 +02:00
Alessandro Pasotti
73cfe04712 Add missing import QgsCsException 2018-06-05 11:48:53 +02:00
Alessandro Pasotti
b97e8351a2 Re-enable the test on travis with a fix 2018-06-05 08:44:23 +02:00
Nyall Dawson
b69389b650 Run clang-tidy modernization checks 2018-06-05 12:50:39 +10:00
Nyall Dawson
2ed144ac59 Apply clang-tidy readability-avoid-const-params-in-decls fixit
Checks whether a function declaration has parameters that are
top level const.

const values in declarations do not affect the signature of a
function, so they should not be put there.
2018-06-05 10:19:13 +10:00
Nyall Dawson
e91aed6617 [processing] Force model outputs to respect constraints set by
their underlying algorithm's provider

E.g. for model outputs generated by a saga algorithm, only
sdat and shp files are valid outputs. So only give users choices
of these instead of all formats.

Also fixes temporary file names generated as part of model
execution may use formats which are not compatible with the
algorithm's provider.

Fixes #18908
2018-06-05 10:05:32 +10:00
Even Rouault
6160e066d7
Merge pull request #7167 from rouault/gpkg_perf_improvements
[OGR provider] Performance improvements on huge GeoPackage database (fixes #18402)
2018-06-04 21:34:30 +02:00
Even Rouault
e998fcf0b2
[WFS provider] [FEATURE] Allow user to enable/disable paging and specify page size (fixes #18935)
The 'maximum number of features' settings is now always the maximum number of
features requested, even in WFS 2.0 with paging.
For WFS 2.0, we add a checkbox to enable/disable paging and a text entry to
specify the page size (if let to empty, server default is used)
We also add a Detect button so that the WFS version is autodetected.
2018-06-04 20:16:55 +02:00
Alessandro Pasotti
d7a6c229e3 Revert "Re-enable test that was failing on Travis"
This reverts commit c4d62ef05ff268d903b0a821b43573b161b3964c.
2018-06-04 16:24:36 +02:00
Alessandro Pasotti
c4d62ef05f Re-enable test that was failing on Travis 2018-06-04 14:27:01 +02:00
Alessandro Pasotti
6ece1aa543 registerProvider now returns a bool 2018-06-04 14:26:22 +02:00
Even Rouault
4f531359ae
[OGR provider] Performance improvements on huge GeoPackage database (fixes #18402)
- Introduce an approximate feature count for GeoPackage in case there are
  at least 100,000 rows in a table.
- Add a super fast implementation of GetExtent() for GeoPackage when there
  is an RTree
- Do not require feature count when enumerating layers from the browser
2018-06-04 14:23:55 +02:00
Nyall Dawson
84806b9161 [processing] Fix cannot use feature source as input for model crs or extent parameters 2018-06-04 21:30:12 +10:00
Nyall Dawson
b65ee54527 Fix incorrectly capitalized accented menu entries
Fixes #19102
2018-06-04 18:37:43 +10:00