6588 Commits

Author SHA1 Message Date
Nyall Dawson
0b17db6fc4 Add unit tests for QgsDataItemProviderRegistry 2018-11-04 21:07:27 +10:00
Martin Dobias
5dd566455f [vertex tool] Respect topo editing when adding a vertex (fixes #18046)
When adding a vertex to a segment that is coincident with some other
segments and topological editing is enabled, vertex tool will now correctly
add new vertex also the coincident segments to preserve shared borders.
2018-11-04 09:54:24 +01:00
Harrissou Sant-anna
fd2a599778 More rendererv2 cleanup 2018-11-03 17:17:01 +01:00
Denis Rouzaud
8ea02e9655
fix qgsDoubleString printing -0 (#8363) 2018-11-01 08:29:57 -08:00
Even Rouault
6d4935803b
Merge pull request #8397 from rouault/fix_20308
[BUGFIX] [OGR provider] Make filter by id(s) requests work again on OSM datasets (fixes #20308)
2018-11-01 14:32:01 +01:00
Even Rouault
986e11b6bb
[BUGFIX] [OGR provider] Make filter by id(s) requests work again on OSM datasets (fixes #20308) 2018-11-01 12:37:37 +01:00
Nyall Dawson
09c2daa1c1 [FEATURE] Allow exploration of QGS project file contents directly
within browser

Allows QGIS project file items inside the browser to be expanded,
showing the full layer tree (including groups) contained within
that project. Layers are shown as normal layer items, allowing
them to be easily added to the current project via drag and drop
or double click. Additionally, because they are treated just
the same as any other layer items in the browser, they can be
drag and dropped within the browser to e.g. directly copy the
layer to a geopackage file!

TODO: apply layer symbology from project file when adding a
layer from a different project to the current project
2018-11-01 20:41:08 +10:00
Nyall Dawson
f0436df618 [browser] Allow data item providers a chance to implement QGIS project
item creation and override default project file handling

If no provider is registered which handles QGIS project files,
then the default behavior is used as a fallback
2018-11-01 20:41:08 +10:00
Nyall Dawson
5c5f2ed7e3 Add method to get QgsLayerItem::LayerType from a map layer 2018-11-01 20:41:08 +10:00
Matthias Kuhn
429cd0bacd
Merge pull request #8240 from m-kuhn/mergeVectorLayersDuplicateFid
Ignore FID field when merging vector layers to geopackage
2018-10-31 13:47:12 +01:00
Alessandro Pasotti
467fae8e26
Merge pull request #8388 from elpaso/bugfix-20271-wms-null-styles
[wms] Do not pass null QStrings to QgsWmsProvider::setQueryItem
2018-10-31 13:34:47 +01:00
Matthias Kuhn
432bec17fc
Add test for QgsVectorLayerExporter with RegeneratePrimaryKey 2018-10-31 10:27:55 +01:00
Alessandro Pasotti
94aa628e3e [wms] Do not pass null QStrings to QgsWmsProvider::setQueryItem
Fix #20271 - WMS is not displayed in QGIS 3.4.0

With test
2018-10-31 10:06:47 +01:00
rldhont
b64e72a89d [Bugfix][Server] Use Project selection color in GetPrint 3.4 2018-10-31 09:38:28 +01:00
Nyall Dawson
0d7f59865b Fix broken handle bad layers dialog
Partially revert af0bae67f and ea2cc365

Fixes #20265
2018-10-31 04:45:31 +10:00
Nyall Dawson
a873289da7 [processing] Fix crash when right clicking toolbox outside of an item
Fixes #20264
2018-10-31 04:44:36 +10:00
Matthias Kuhn
8fc43780dc
Merge pull request #8114 from signedav/bugfix_not_deleting_relation
More intuitive relation reference widget text filter
2018-10-29 09:52:41 +01:00
rldhont
6249b07f7c
Merge pull request #8320 from rldhont/server-reactivate-print-selection-3
[Server] Reactivate the capability to print selection with Server 3.4
2018-10-26 14:23:09 +02:00
Hugo Mercier
443afcd0bf
Merge pull request #8323 from mhugo/fix_15709
Fix virtual layer FilterRect handling when no uid is defined
2018-10-26 14:04:27 +02:00
rldhont
c47c0ef7d5 [Server][Tests] Update WMS GetPrint Selection 2018-10-26 11:36:28 +02:00
Hugo Mercier
efe4a79687 Fix virtual layer FilterRect handling when no uid is defined (fixes #15709)
When no uid if defined, features returned have an id defined by an
autoincremented integer. So we cannot use a SQL filter here because it
would return a subset of features and then an autoincremented id that
does not correspond to ids without filters.

So in this case, all the features are requested and the rectangle
intersection is done by the provider, not by SQLite.
2018-10-26 11:07:43 +02:00
Matthias Kuhn
a0e3c2df3b
Merge pull request #8335 from m-kuhn/qgsrectangleSnappedToGrid
Add QgsRectangle::snappedToGrid
2018-10-26 10:00:39 +02:00
Nyall Dawson
0f22a29b9d Fix dropping/adding z dimensions to certain output data types
where the layer geometry type is defined by features, not preset
in advance

Fixes #20220, #17669
2018-10-26 16:57:48 +10:00
Matthias Kuhn
0da210df52
Add QgsRectangle::snappedToGrid
Snaps a rectangle to a grid.
2018-10-26 07:58:27 +02:00
Nyall Dawson
f0735d9171 Update test masks 2018-10-26 15:03:54 +10:00
Nyall Dawson
25c94d48b5 Better method to avoid test on Travis 2018-10-26 07:54:14 +10:00
Nyall Dawson
89aa19f643 Add a provider test to ensure that features returned from
addFeatures have the correct id assigned
2018-10-26 07:54:14 +10:00
Nyall Dawson
54c587f028 [mssql] Avoid some tests on Travis which trigger crashes in the ms odbc driver
not our fault -- i think it's either an issue with the ms odbc
driver itself or qt's odbc database handling. In any case, it
doesn't crash locally, so let's just skip the tests which trigger
the crash for now and revisit when Travis environment is upgraded.(*)
2018-10-26 07:54:14 +10:00
Nyall Dawson
1f852fffa8 [mssql] Run provider layer edits test suite 2018-10-26 07:54:14 +10:00
Nyall Dawson
37a6856232 A bit more tolerance in provider test 2018-10-26 07:54:14 +10:00
Denis Rouzaud
8eb193020a
Merge pull request #8330 from 3nids/fix9160
Properly zoom to feature for single point selected
2018-10-25 13:34:49 -08:00
Denis Rouzaud
daca55a725 add test for QgsRectangle::scale and scaled 2018-10-25 15:31:05 -04:00
Nyall Dawson
3088574c50 Fix failing oauth2 test
The presence of the state parameter which has no QPROPERTY
counterpart in QgsAuthOAuth2Config was causing the
conversion for json to qobject to fail.
2018-10-26 04:46:42 +10:00
lbartoletti
94ce3b92a9
Merge branch 'master' into bugfix_18902 2018-10-25 20:30:39 +02:00
Matthias Kuhn
dc334ac028
Merge pull request #8223 from signedav/json_tests
QgsServer Tests for JSON fields
2018-10-25 16:41:40 +02:00
rldhont
eae047e9dd [Server][Tests] Update WMS GetMap Selection
The selection color is read from the project and apply to the map.
2018-10-25 16:40:53 +02:00
signedav
5b4aed3aa2 Test if NULL is selected 2018-10-25 14:58:30 +02:00
Alessandro Pasotti
6afb8def0a Add a test for saveNamedStyle to file path 2018-10-25 14:20:18 +02:00
signedav
0a2689d94e rearanged imports 2018-10-25 13:29:13 +02:00
Peter Petrik
b0bd629336 fix #19939: render mesh arrows also on the edge of the canvas 2018-10-25 13:16:17 +02:00
signedav
2e01811aa7 tests for switching between values
especially setting the NULL value and checking if it's selected
checking if the clear button is activ when it should and inactive when it should
2018-10-25 12:34:12 +02:00
Matthias Kuhn
02888959a2
Merge pull request #8263 from signedav/gpkg_offline_editing
[Bugfix] offline editing with gpkg
2018-10-25 11:54:56 +02:00
signedav
ba1fe9de0e remove username/password in db connection in test project 2018-10-25 11:40:44 +02:00
Nyall Dawson
244ba5ca3a [afs] Handle invalid responses returned from FeatureServer multipoint
layers, where individual features may have point geometries

Not sure if this is a bug in ArcGIS server (probably, yeah, let's
go with definitely. I couldn't check the source to see.) But in
general QGIS approach is to be forgiving and do our best to
make up for badly behaved servers).

See https://community.esri.com/thread/14037
2018-10-25 10:52:02 +10:00
Nyall Dawson
b039cd12dc Unit test for QgsMessageBarItem::dismiss 2018-10-25 10:51:44 +10:00
Blottiere Paul
c41a5d07d5
Merge pull request #8220 from pblottiere/server_invalid_bbox
[server] Fixes #5520 - Invalid BBOX in WMS GetCapabilities
2018-10-24 15:35:19 +01:00
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