42663 Commits

Author SHA1 Message Date
Richard Duivenvoorde
32852fb42c fix tab clicks in plugin manager 2017-10-20 18:29:19 +02:00
Even Rouault
a733ace362 Merge pull request #5409 from rouault/fix_gpkg_many_layers
[OGR provider] Allow opening (GeoPackage) datasets with many layers
2017-10-20 18:06:52 +02:00
Even Rouault
c9b0a2b167 [OGR provider] Speed-up layer addition to the canvas when selected from the data source manager 2017-10-20 17:37:42 +02:00
Even Rouault
8f3d44d4e9 [OGR provider] Allow opening (GeoPackage) datasets with many layers
Currently each time you instanciate a QgsOgrProvider layer, a GDAL dataset is
created. In the case of GeoPackage, this means a SQLite connection and a file
handle. As GDAL enables Spatialite function on GeoPackage connections, we are
bound to Spatialite limits, and Spatialite has a hard limit on a maximum of
64 simultaneous connections. Thus we cannot open more than 64 layers of the
same GeoPackage.
This commits enables sharing of the same GDALDataset object among several
QgsOgrProvider object. Care is made to reuse a GDALDataset object only if the
QgsOgrProvider do not point to the same layer. Mutexes are also taken to
allow safe instanciation and use of QgsOgrProvider objects from multiple
threads (but a same QgsOgrProvider should not be used by more than one thread
at a time)
2017-10-20 17:37:42 +02:00
Even Rouault
e59f1d5d48 Move static variable to function scope 2017-10-20 17:37:26 +02:00
Matthias Kuhn
08443c20d8
Revert "Avoid type quotation errors in value exists check"
This reverts commit 6ce4b607c522d5db35227d2ae5f20259d4e384f0.
2017-10-20 17:11:32 +02:00
Even Rouault
fc016ec615 Application termination: fix crash caused by 5288aed5503205948f3785590e3b27d325340afe when layers are still opened at exit 2017-10-20 16:29:19 +02:00
Matthias Kuhn
6ce4b607c5
Avoid type quotation errors in value exists check 2017-10-20 16:14:01 +02:00
Matthias Kuhn
a01f153ec1
Feature validation should not spam the log 2017-10-20 16:14:01 +02:00
Even Rouault
5288aed550 QGisApp: fix potential crash at application closing linked to mDataSourceManagerDialog destruction closing GDAL datasets after GDAL has been shut down 2017-10-20 14:10:58 +02:00
rldhont
0f3d14a005 Merge pull request #5408 from rldhont/server-handlerequest-project
[Server][FEATURE] Handle request from QgsServer with a QgsProject
2017-10-20 11:13:15 +02:00
rldhont
efb84fd2ca Merge pull request #5337 from dmarteau/qgis_utils_refactoring
Disable message hook and import override at runtime
2017-10-20 10:25:45 +02:00
rldhont
7b455d8700 [Server][FEATURE] Handle request from QgsServer with a QgsProject
With this commit, it's posssible to handle a request from a QgsProject without writing it to the disk.

```python
server = QgsServer()
project = QgsProject()
vlayer = QgsVectorLayer("/path/to/shapefile/file.shp", "layer_name_you_like", "ogr")
project.addMapLayer(vlayer)

query_string = 'https://www.qgis.org/?SERVICE=WMS&VERSION=1.3&REQUEST=GetCapabilities'
request = QgsBufferServerRequest(query_string, QgsServerRequest.GetMethod, {}, data)
response = QgsBufferServerResponse()
server.handleRequest(request, response, project)
```
2017-10-20 09:44:24 +02:00
Matthias Kuhn
13a00aae30 Merge pull request #5399 from pblottiere/server_flaky_tests
[server] WIP : reactivate flaky server tests for WMS requests
2017-10-20 08:26:04 +02:00
Nyall Dawson
8d64e2e6ef Also add unique_ptrs for other geos classes 2017-10-20 12:16:48 +11:00
Nyall Dawson
b2add8cf46 Another attempt to avoid Travis warnings 2017-10-20 12:16:48 +11:00
Nyall Dawson
4e586818ef Fix warning if building without 3d
(AKA hurry up Fedora 27, I want Qt 5.9 already)
2017-10-20 09:07:23 +10:00
Alessandro Pasotti
a411669dae Merge pull request #5226 from aaime/rule_labels
Also export rule based labelling in SLD. Follows up to ticket #8925
2017-10-19 17:58:25 +02:00
Blottiere Paul
3c18232c34 Unskip test_wms_getprint_srs (GetPrint has been refactored since) 2017-10-19 15:29:27 +01:00
Blottiere Paul
e90f601a15 Add some tests to validate assertXMLEqual 2017-10-19 15:29:27 +01:00
Blottiere Paul
e50a8aa31e Split WMS tests to detect flaky behavior 2017-10-19 15:29:27 +01:00
rldhont
e7d7295a64 Merge pull request #5405 from rldhont/server-wms-test-enhancement
[Server][Tests] Fix WMS tests locally
2017-10-19 15:51:37 +02:00
Andrea Aime
aa594f5397 Also export rule based labelling. Follow up to #8925 2017-10-19 14:55:37 +02:00
rldhont
dc6bdc2919 [Server][Tests] Fix WMS tests locally 2017-10-19 14:48:48 +02:00
Martin Dobias
79bc5d4bf7 Save state of 3D map views in projects + restore them on project load 2017-10-19 09:26:30 +02:00
Martin Dobias
2aaff6a331 Move code useful for 3D view out of 2D map canvas dock code 2017-10-19 09:26:30 +02:00
Nyall Dawson
ac7e041a4c Revert "Fix build warnings on Travis"
Hey clang - how about you don't through warnings if
fixing them breaks the build?

This reverts commit e28a555497e9984d261c6a054502c875b6994a89.
2017-10-19 16:14:12 +10:00
Nyall Dawson
e28a555497 Fix build warnings on Travis 2017-10-19 14:25:01 +10:00
Nyall Dawson
8927fb57c2 Merge pull request #5369 from nyalldawson/toolbox_order
[processing] Always list native algorithms before 3rd party providers
2017-10-19 15:23:22 +11:00
Nyall Dawson
4ce166241e Allow processing providers to specify a long name, and show it in tooltips
Add version number to gdal provider long name
2017-10-19 13:12:31 +10:00
Nyall Dawson
a33376fe09 Drop version and count from algorithm item in tree view 2017-10-19 12:01:40 +10:00
Nyall Dawson
925ec6098c [processing] Always list native algorithms before 3rd party providers
This change ensures that searching for algorithms always returns
native algorithms before matching 3rd party algorithms

TODO: we really need to replace the toolbox tree with a proper
model and redo the sorting/filtering using a sort/filter proxy
model.
2017-10-19 12:01:40 +10:00
Nyall Dawson
325168ee1f Merge pull request #5392 from nyalldawson/file_downloader
Split QgsFileDownloader into separate core/gui classes
2017-10-19 12:59:07 +11:00
Nyall Dawson
b855ad1e72 Merge pull request #5366 from DelazJ/effectsalign
Vertically align color widget in Effect properties dialog
2017-10-19 12:48:47 +11:00
Nyall Dawson
8ca4a1a80f Fix windows build 2017-10-19 11:47:57 +10:00
Nyall Dawson
34e3056846 Merge pull request #5371 from DelazJ/colorspace
Optimize spacing in Color settings dialog
2017-10-19 12:45:55 +11:00
Nyall Dawson
bb522b3660 More use of geos::unique_ptr 2017-10-19 11:52:10 +11:00
Nyall Dawson
0d6df12835 Fix leak in QgsMultiSurface::asJSON 2017-10-19 11:52:10 +11:00
Nyall Dawson
6fe89fd3c4 Replace GEOSGeomScopedPtr with unique_ptr with custom deleter
And make greater use of it through QgsGeos to avoid potential
memory leaks.
2017-10-19 11:52:10 +11:00
Nyall Dawson
406425d68a Rename method, docs and api breaks documentation 2017-10-19 07:29:48 +10:00
Nyall Dawson
30da28a7b0 Fix qt warnings thrown by QgsFileDownloader 2017-10-19 07:21:17 +10:00
Nyall Dawson
587072cae9 Split QgsFileDownloader into separate core/gui classes
So that the guts of this class can be used from non-gui code
2017-10-19 06:32:50 +10:00
Nyall Dawson
a406739975 Add render context flag to indicate canvas preview jobs
In future we can use this to optimise the preview job and shortcut
by doing lower quality/faster renders.

For now, use this flag to identify preview jobs and only apply
'updated canvas' min/max to rasters for non-preview jobs

Fixes #16988
2017-10-19 07:31:33 +11:00
Nyall Dawson
f77377e6ae Fix crash in QgsGeometry::splitGeometry 2017-10-19 07:30:50 +11:00
Alexander Bruy
a6ac876d90 [processing] update test data 2017-10-18 18:41:39 +03:00
volaya
fe780afc81 [processing] allow reordering in multiple selection dialog 2017-10-18 16:20:47 +02:00
Alexander Bruy
d0623620a3 [processing] retrieve dissolve parameter as boolean value 2017-10-18 16:21:57 +03:00
Alessandro Pasotti
a7765ca966 Merge pull request #5380 from boundlessgeo/bd_2272_pki_parsed_ca
[auth] Allow to optionally add CAs from PKI bundle to the trusted CAs for the configured connection
2017-10-18 11:47:30 +02:00
Nyall Dawson
df0d717f92 Fix disabled add button in ogr source select for valid protocols
Fixes #17206
2017-10-18 10:51:43 +10:00
Nyall Dawson
c295c92ed7 Remove empty item from plugin manager tabs 2017-10-18 10:28:38 +10:00