Blottiere Paul
e1cdd7e92d
Some cleaning in unit tests
2018-10-24 00:24:48 +02:00
Blottiere Paul
e25a452d17
Add unit test
2018-10-24 00:21:53 +02:00
Nyall Dawson
0fad3e5731
Fix build with newer sip versions
...
Fixes #19476
2018-10-24 08:10:50 +10:00
Denis Rouzaud
49e8e86029
add rendering tests for HiDPI (device pixel ratio)
2018-10-23 16:25:23 -04:00
Denis Rouzaud
3ff8477c52
add test for device pixel ratio in map settings
2018-10-23 12:20:43 -08:00
Alessandro Pasotti
15f4138a47
[db-manager] Store exception text in the task and pass it over to the caller
...
Fix #2019 - DBManager fails to display error messages with virtual layers
2018-10-23 14:59:10 +02:00
Nyall Dawson
5e6eef3e54
[layouts] Fix incorrect first page size in multipage layouts when
...
first page is skipped from output
Fixes #18742
2018-10-23 16:41:30 +10:00
Nyall Dawson
de0e74be59
Add method to whitelist layers to show in QgsMapLayerProxyModel
2018-10-23 16:41:06 +10:00
Etienne Trimaille
0731148b6b
move function map to hstore into QgsHstoreUtils
2018-10-23 13:11:15 +10:00
Nyall Dawson
4212cca56e
Add a Python repr for QgsError
2018-10-23 10:37:55 +10:00
Nyall Dawson
c94eefb6df
[layouts] Fix data defined atlas margin isn't evaluated
...
Fixes #19896
2018-10-23 05:57:23 +10:00
signedav
cdcb5a2c4c
running autopep8 on file to format correctly
2018-10-22 07:42:35 +02:00
Alessandro Pasotti
71e85cc0b8
Merge pull request #8231 from elpaso/bugfix-20147-in-place-difference
...
[in-place][needs-docs] add buffer for polygons and fix #20147 in place difference
2018-10-19 22:40:57 +02:00
Nyall Dawson
f00e43d3c2
[layouts] Hack around inconsistent subclassing of layout items by sip
...
Sometimes, calling some layout methods, results in sip being inable
to downcast the items to their correct type, resulting only
in a QgsLayoutItem object.
This works around the problem, albeit in an incredibly hacky way.
2018-10-20 06:19:34 +10:00
Alessandro Pasotti
21e685b46f
[in-place] Limit buffer to (multi)polygons
2018-10-19 16:37:54 +02:00
Matthias Kuhn
763fa420ac
Merge pull request #8216 from rouault/fix_20136
...
[OGR provider] Revise significantly the way we handle subset filter to avoid issues with FID (fixes #20136 )
2018-10-19 10:03:05 +02:00
Nyall Dawson
5d9d903fb0
Move browser proxy model to core library and expose as stable API
...
This class is useful for plugins and other areas of QGIS code which
want to expose a limited browser interface (e.g. a vector layer
only type layer picker)
Also add unit tests
2018-10-19 08:32:56 +10:00
Nyall Dawson
72bf08e2b7
Deprecate QgsBrowserModel::connectItem
...
This method should only be private, and is completely dangerous
to call from external code (it breaks the model!).
Deprecate and replace with a no-op
2018-10-19 08:32:56 +10:00
Nyall Dawson
ac3fe8ff23
More unit tests
2018-10-19 08:32:56 +10:00
Nyall Dawson
765dbf6ae7
Dox, tests
2018-10-19 08:32:56 +10:00
Nyall Dawson
67f1e10ea8
More unit test for QgsBrowserModel
2018-10-19 08:32:56 +10:00
Nyall Dawson
4d18eeecbe
Fix incorrect hasChildren return value when QgsBrowserModel
...
has no root items
2018-10-19 08:32:56 +10:00
Alessandro Pasotti
71e2a6be7e
In-place passthrough for invalid geometries if processing option is to skip invalid
...
Fixes #20147 - difference deletes invalid geometries
2018-10-18 17:43:00 +02:00
Matthias Kuhn
6745eecd1d
Add tests for editing filtered gpkg layer
2018-10-18 17:01:39 +02:00
signedav
97b827e97c
indentation
2018-10-18 16:38:54 +02:00
signedav
c7c7204252
put extra default back
2018-10-18 15:37:31 +02:00
Even Rouault
391ec8a5dd
[OGR provider] Revise significantly the way we handle subset filter to avoid issues with FID ( fixes #20136 )
...
Some rationale on this change...
Previously when applying a "regular" subset string, ie. one that is only the
content of a where clause, we issued a full "SELECT * FROM layer WHERE subsetstring",
resulting in a OGR SQL layer. The caveat of that is that most OGR drivers
will have issues retaining the original FID. A hack consisting in adding a
{original_fid_name} as orig_ogc_fid to the select columns was introduced in
4ce2cf1744
to try to retain the original FID, but this added a lot of complexity. And
actually, in the case of the OGR GPKG driver, it caused it to still be confused
when analyzing the column definition of the resulting layer, since it sees
2 FID columns despite the renaming (one included in the '*' wildcard, and the
one of orig_ogc_fid), which caused it to use sequential FID numbering (the
driver when seeing more than once a column that is the FID column assumes that
some cross join is done, and thus that FID are unreliable)
A simpler and more robust (crossing fingers!) approach in that case is
just to use OGR_L_SetAttributeFilter() instead of GDALDatasetExecuteSQL().
Some care must be taken to cancel the filter when removing the subset
filter, or in QgsOgrFeatureIterator when combining with the filter
expression coming from the request, but besides that, this is more
straightforward, and actually solves #20136
2018-10-18 12:28:02 +02:00
signedav
7026dfa329
json decoding of values
...
before comparing them with the python structs
2018-10-18 09:19:33 +02:00
signedav
d34fdf277d
extended json type server tests
...
not working because of the \n in the response
2018-10-18 09:18:28 +02:00
signedav
4f55e9d8a2
server tests for json types in postgres
2018-10-18 09:18:28 +02:00
nirvn
009fcd8e7e
fix build on cosmic (et cie)
2018-10-18 13:27:37 +07:00
rldhont
e10736ae7b
Merge pull request #8199 from pblottiere/server_getfeatureinfo_tolerance
...
[bugfix] Fixes #19383 - GetFeatureInfo tolerance
2018-10-16 19:12:11 +02:00
Matthias Kuhn
7d3daf6f40
Merge pull request #8197 from signedav/fix_duplication
...
[Bugfix] Care about default values again on creating feature
2018-10-16 15:18:57 +02:00
Matthias Kuhn
190f938654
Merge pull request #8103 from m-kuhn/geometryValidatorCode_1
...
Geometry validation of editing session
2018-10-16 11:34:50 +02:00
signedav
5352629842
rename back test_qgsowsconnection
2018-10-16 07:09:44 +02:00
Nyall Dawson
ca427d3316
Rename actions
2018-10-16 14:13:29 +10:00
Nyall Dawson
b7b638c52b
Simpler API to link actions to QgsDockWidget
2018-10-16 14:13:29 +10:00
Nyall Dawson
51f6fb0667
QStringLiteral
2018-10-16 13:32:05 +10:00
Even Rouault
c89a542365
Merge pull request #8185 from rouault/fix_19571
...
[WFS client] Try to handle layers of type GeometryCollection if the first GeometryCollection is made of geometries of the same type (fixes #19571 )
2018-10-15 20:33:08 +02:00
Matthias Kuhn
8da2910993
Add some tests for QgsVectorLayerFeaturePool
2018-10-15 17:29:21 +02:00
Even Rouault
9014285bc7
[WFS client] Try to handle layers of type GeometryCollection if the first GeometryCollection is made of geometries of the same type ( fixes #19571 )
2018-10-15 15:29:42 +02:00
Matthias Kuhn
0bb6a16145
Standardize geometry checker tests
2018-10-15 15:25:45 +02:00
signedav
7ce06e6265
test with correct uniquevalue
2018-10-15 14:45:47 +02:00
Blottiere Paul
c3a41bc2fa
Add unit test for polygon tolerance
2018-10-15 13:29:25 +01:00
Matthias Kuhn
6a94033487
Make feedback a required parameter for geometry checks
2018-10-15 14:28:02 +02:00
Matthias Kuhn
2a5692a520
Add test for overlap check with no area size restriction
2018-10-15 14:28:02 +02:00
Blottiere Paul
5765d49465
Add unit test for line tolerance
2018-10-15 10:40:27 +01:00
signedav
67276dcddf
corrected comment in test
2018-10-15 11:25:04 +02:00
Even Rouault
d5e57d31e6
Merge pull request #8186 from rouault/fix_20104
...
[GDAL provider] Make sure that setEditable(true) invalides cached GDAL handles to get proper refresh (fixes #20104 )
2018-10-15 11:10:00 +02:00
Even Rouault
b777ab23b1
Merge pull request #8184 from rouault/fix_20098
...
[OGR provider] Make again a feature iterator to be resetable on a OSM layer (fixes #20098 )
2018-10-15 11:09:43 +02:00