4517 Commits

Author SHA1 Message Date
Nyall Dawson
e6a8980b97 Run all GeoNode tests locally, but skip ones which rely on a remote server on Travis 2017-09-13 05:47:53 +10:00
Nyall Dawson
61e70c93a6 Slight folder restructuring 2017-09-13 05:47:53 +10:00
Nyall Dawson
378a9e90dd Split QgsGeoNodeConnection into two classes
Move utility functions to QgsGeoNodeConnectionUtils
2017-09-13 05:47:20 +10:00
Ismail Sunni
cad8fa8bb2 Fix can not delete geonode instance from browser. 2017-09-13 05:47:19 +10:00
Ismail Sunni
3016158558 Add style retriever for a geonode layer. 2017-09-13 05:47:19 +10:00
Muhammad Yarjuna Rohmat
bea89b32ca [FEATURE] QGIS - GeoNode Integration: Integrate with QGIS Browser Panel (#4816)
* add Geonode connection menu to the toolbar

* add header files for geonode-qgis client

* add action to launch geonode connection dialog from menubar

* Move to proper directory

* Add geonodeconnection class.

* Add unit test for geonode connection.

* Use const static to avoid typo.

* Get list layers from geonode.

* Add get maps method.

* Geonode connection dialog (#13)

* add new geonode connection dialog

* apply functionality to the geonode connection manager dialog

* add save and load geonode connection functionality

* edit baseKey and credentialBaseKey

* remove auto-connect slots

* Add unit test for geonode connection.

* Add wms url getter.

* Add uuid and layer name in the table.

* Add handler for the list layer clicked. WIP.

* Use new style connect, better hacky to get wms url.

* update gitignore

* Make QGIS able to add WMS layer from geonode. With hacky code.

* Fix Docstring.

* Show web service type (WMS/WFS) in layer table.

* fix http and toolbar menu

* add geonode data item to the browser panel as an extention of ows provider

* [WIP] Add WFS.

* Add geonode get service url.

* combobox functionality and test geonode connection

* Add WFS.

* Disable add button if it's a map. Currently we can't do anything for map.

* Add busy cursor when add layer.

* get service uri capabilitites

* add available layers to the geonode browser panel

* remove debugging footprint and replace old style connect

* add actions (new, edit, delete) to geonode browser panel

* fix getLayers by WMS url

* add Geonode connection menu to the toolbar

* Filter out invalid layer / map.

* Fix service url method.

* Add service url for XYZ for GeoNode QGIS Server backend.

* Add XYZ url to geonode connection  dialog.

* Add XYZ layer to QGIS.

* fix double geonode submenu

* add wfs/wms layers from browser panel using its native provider

* comply with qgis3 new class naming

* Handle different prefix for layer in GeoNode QGIS Server backend.

* base class for cms connection

* make geonode connection as a derived class from cms connection

* update cmakelists

* move geonode connection to geocms dir

* update CMakeLists

* Handle geonode 2.7 with new API.

* Handle multiple geoserver url in one geonode.

* Fix add xyz for qgis server. Fix add wms, wfs, xyz for geoserver in geonode 2.7

* Refactor serviceURL to return QStringList.

* add 'add geonode layer' icon

* add geonode to the data source manager dialog

* [GeoNode-Client] Fix add WFS layer.

* fix wms url parameter

* add xyz dataitems

* Use new style connect.

* [GeoNode Client] Handle qgis server specific typename to make add WFS works.

* Code improvement.

* [GeoNode Client] Make geonode dialog in add universal layer can add layer.

* Open universal add layer when click Add GeoNode layer.

* Make sure the geonode url has protocol.

* Handle geonode version in a better way.

* make sure the serviceUrl method has scheme in its urls

* add services option to the dialog

* remove version label if not wfs

* construct wms url with parameters for geonode connection

* handle layer from multi service urls for every wfs, wms, & xyz services

* fix new style connect using static_cast

* hode close button if dialog is in embedded mode

* fix xyz layer naming in the browser tree

* create base class for geocms dataitems

* fix compiling warning

* Use struct instead QVariantMap.

* tidy up code

* Tidy up code, use QgsStringMap instead QVariantMap.

* Add spellok for catalogue.

* update sip

* update sip

* Use naming convention for QgsGeoCmsConnection and use QUuid.

* Async by using GeoNodeRequest class.

* Move geonode to src/gui.

* Use stack not heap.

* Remove unused includes.

* Use signal to handle request.

* Use QStringLiteral.

* Switch to use Q_FOREACH.

* Use Q_FOREACH and addressing PR's review.

* Set private for data members.

* update sip

* Update sip.

* Update sip.

* Fix sip problem to make it buildable again.

* Remove geocms

* Tidy up code.

* Use QgsSetting Scope::Provider.

* Fix missing zip.h
2017-09-13 05:47:19 +10:00
Sandro Mani
95cd8d744d [OGR] Ensure subset string is set when reopening dataset
QgsOgrProvider::reloadData calls close() and open(), which in turn called setSubsetString with mSubsetString.
Since setSubsetString does nothing if the passed sql string is equal to mSubsetString, this resulted in the
substring not being set on re-open. This commit clears mSubsetString before calling setSubsetString, and
blocks signals when calling setSubsetString to avoid an endless recursion of emit dataChanged -> reload.
Fixes #17122.
2017-09-12 15:26:09 +02:00
Nyall Dawson
b26b8d9789 Merge pull request #5165 from Gustry/save_metadata
write metadata with XML
2017-09-12 20:32:08 +10:00
Etienne Trimaille
814ef78732 write metadata with XML 2017-09-12 07:28:54 +02:00
Nyall Dawson
6166d21289 Add missing docs 2017-09-11 21:43:15 +10:00
Nyall Dawson
7afec4bd98 Cleanup pointer comparisons to nullptr 2017-09-11 17:11:50 +10:00
Nyall Dawson
c78ca050c0 Ignore =default during doxygen coverage test 2017-09-11 17:10:31 +10:00
Alessandro Pasotti
32dee4480c Merge pull request #5156 from boundlessgeo/gpkg_tab
[feature][needs-docs] Gpkg tab in source select dialog
2017-09-11 08:15:55 +02:00
Nyall Dawson
a650681061 Merge pull request #5131 from nyalldawson/location_algs
Rework Select by Location algorithm
2017-09-11 15:50:43 +10:00
Nyall Dawson
7f5bd00cbf Merge pull request #5154 from nyalldawson/stats
[processing] Improve Stats by Categories algorithm, remove duplicate algs
2017-09-11 15:50:16 +10:00
Nyall Dawson
02e8f1e6fa Fix tests 2017-09-10 14:07:52 +10:00
Nyall Dawson
cea7eb8be5 Merge pull request #5119 from nyalldawson/layout_next3
[layouts] Undo/redo framework
2017-09-10 11:38:59 +10:00
Martin Dobias
31b6b5885f Node tool: give priority to the current layer when selecting vertex 2017-09-08 15:12:50 +02:00
Alessandro Pasotti
8abf6dc43e Update tests for OGR getLayers now returning also the geometry column name 2017-09-08 12:36:42 +02:00
Nyall Dawson
f799d3afc8 Move allFeatureIds from QgsVectorLayer to QgsFeatureSource 2017-09-08 20:09:29 +10:00
Alessandro Pasotti
f0e021c2fd Merge pull request #5000 from jgrocha/add-default-layers
[FEATURE][needs-docs] Add XYZ connection to provide default OpenStreetMap tiles
2017-09-08 10:40:45 +02:00
lbartoletti
629f46d308 add overload methods 2017-09-08 08:06:21 +02:00
lbartoletti
6ae929e9cb initial commit 2017-09-08 08:06:21 +02:00
Nyall Dawson
2612c39578 [processing] A non optional, multiple field input must have at least
one selected field to be considered valid
2017-09-08 09:10:17 +10:00
lbartoletti
e57c3b3974 Merge branch 'master' into regularShape_gui 2017-09-06 21:55:33 +02:00
Blottiere Paul
76b2b8eed3 Add some tests 2017-09-06 15:22:39 +01:00
Blottiere Paul
7ef2e7046e Some cleanup and renaming 2017-09-06 14:46:37 +01:00
Blottiere Paul
4a084bf961 Add tests 2017-09-06 14:46:37 +01:00
Blottiere Paul
3b839ceb43 Merge pull request #5084 from pblottiere/server_bugfix_ogc_mode
[server][bugfix] Fixes OGC test on getmap:each-format mode for 1bit/8bit/16bit
2017-09-06 08:14:34 +01:00
Blottiere Paul
eb9e2ace75 Add some tests 2017-09-06 07:28:39 +01:00
Nyall Dawson
f1313af914 Add some more unit tests 2017-09-06 11:25:17 +10:00
Nyall Dawson
1e1ed8a462 Add unit tests for referenced geometries 2017-09-06 11:25:16 +10:00
Alessandro Pasotti
5f5be25357 Merge pull request #5124 from boundlessgeo/providers_gui_config
Providers gui config
2017-09-05 19:27:47 +02:00
Alessandro Pasotti
08588a54da Add tooltips and tests for the provider class 2017-09-05 17:03:20 +02:00
Matthias Kuhn
8efa9fa815 [FEATURE] Add "starts with" and "ends with" to multi attribute search 2017-09-05 14:15:38 +02:00
Nyall Dawson
64718766fc Add some layout undo/redo tests 2017-09-05 11:17:33 +10:00
Nyall Dawson
0062513bba Identation 2017-09-05 10:23:28 +10:00
Nyall Dawson
1589b4e648 Implement some saving/restoring layout items to XML 2017-09-05 09:39:22 +10:00
Nyall Dawson
66e1cf04e6 Port methods to retrieve layout items 2017-09-05 09:39:22 +10:00
Sandro Mani
c43cd995a2 Merge pull request #5122 from manisandro/ogr_subset_fid
[OGR] Attempt to use actual ogr_fid also if subset string is set
2017-09-04 17:01:28 +02:00
Sandro Mani
217e70067f [OGR] Attempt to use actual ogr_fid also if subset string is set
If a subset string is set on an OGR layer, the feature iterator returns features with ids taken from a sequence starting from 0, regardless of the original feature id.

This causes a mismatch in the data shown by the identify results table and the attribute widget.
2017-09-04 16:28:47 +02:00
Alessandro Pasotti
fd7bcb368d Updates tests for source select registry 2017-09-04 15:16:20 +02:00
Jorge Gustavo Rocha
858413e5c1 Improve test: assert → assertTrue 2017-09-04 10:51:05 +01:00
Nyall Dawson
b629fbca49 Skip another test which is fragile on Travis 2017-09-04 16:55:35 +10:00
Alessandro Pasotti
90f873086c Attach QgsSourceSelectProviderRegistry to QgsGui
And make it a singleton
2017-09-04 08:00:14 +02:00
Nyall Dawson
700f9b2ef8 Condense qgstestutils.h and qgstest.h into a single file 2017-09-04 10:38:18 +10:00
Nyall Dawson
2286710606 Skip some task manager tests on Travis only
Instead of #ifdefing them out, only prevent them running
on Travis so that they still run locally.

Also skip another task manager test which randomly
fails only on Travis
2017-09-04 10:32:08 +10:00
Nyall Dawson
26830949d9 Add a QgsLocatorModel subclass which automatically sets up
required connections to a QgsLocator

Use this QgsLocatorModel subclass when you want the connections
between a QgsLocator and the model to be automatically created
for you. If more flexibility in model behavior is required,
use the base QgsLocatorModel class instead and setup the
connections manually.
2017-09-03 16:35:51 +10:00
Nyall Dawson
a8e1d335bb Move locator non-gui classes to core
Allows reuse in projects which don't build QGIS gui, e.g.
QField
2017-09-03 16:15:20 +10:00
Jorge Gustavo Rocha
e681547c1f remove unnecessary test 2017-09-03 00:44:25 +01:00