5689 Commits

Author SHA1 Message Date
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
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
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
Matthias Kuhn
36712b9ed2
Merge pull request #7118 from m-kuhn/stringCompOperators
Cast left node to text on string comparison
2018-06-04 09:25:10 +02:00
Nyall Dawson
a1d46de0de [processing] Fix evaluation of vector layer references to compatible feature sources
Refs #18545
2018-06-04 13:57:06 +10:00
Nyall Dawson
1395dc0e9c Add missing license headers 2018-06-04 11:30:32 +10:00
Nyall Dawson
23c3731121 Fix path to licensecheck in test 2018-06-04 11:30:32 +10:00
Nyall Dawson
4bb572f4d0 Move licensecheck to external folder 2018-06-04 11:30:32 +10:00
Nyall Dawson
4e0845b4c6 Include licensecheck.pl script in code_layout test folder
Seems to be the only way to get this functional under Travis.

TODO: remove when Travis is upgraded to a reasonably modern
Ubuntu version
2018-06-04 11:30:32 +10:00
Nyall Dawson
48b117e0db Fail check if licensecheck missing 2018-06-04 11:30:32 +10:00
Nyall Dawson
d16ec3e257 Add unit test for license headers 2018-06-04 11:30:32 +10:00
Nyall Dawson
bb2e15c95a More checks 2018-06-04 06:35:10 +10:00
Nyall Dawson
4ddf58c01c Add feature source test for combination of filterfids AND filterrect
Both these conditions must be honored when set, i.e. features
with matching IDs but which fail the rect check should not be
returned.
2018-06-04 06:35:10 +10:00
Denis Rouzaud
e5b02cd2a8 use dedicated files for auto additions 2018-06-03 11:07:09 -08:00
Nyall Dawson
477fb89fdf More tests 2018-06-03 09:24:35 +10:00
Nyall Dawson
314942d7a2 Also check geometry in tests 2018-06-03 09:24:35 +10:00
Nyall Dawson
f3bc283cd5 Better tests 2018-06-03 09:24:35 +10:00
Even Rouault
f68f288dea
Merge pull request #7145 from rouault/fix_18596
[OGR provider] When editing a GeoJSON file, close and re-open the file at end of editing session (fixes #18596)
2018-06-02 17:32:12 +02:00
Even Rouault
754018a477
[OGR provider] When editing a GeoJSON file, close and re-open the file at end of editing session (fixes #18596) 2018-06-02 12:00:15 +02:00
Even Rouault
9d3f8d44f5
Merge pull request #7140 from rouault/fix_19009
Assorted set of fixes regarding field length for OGR provider
2018-06-01 17:42:59 +02:00
Alessandro Pasotti
3aa630ca25 Added QgsDataProvider::ProviderOptions to the bindings 2018-06-01 14:18:44 +02:00
Even Rouault
f4bf1ec907
[OGR provider] GPKG: allow repeated creation of int fields with len != 0 (fixes #19009) 2018-06-01 13:15:41 +02:00