43033 Commits

Author SHA1 Message Date
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
Jachym Cepicky
28daa1a0e0 Adding more default SHP->GPKG changes 2017-10-19 15:45:04 +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
Harrissou Sant-anna
60d0db9ebd [DB Manager]Set dialog alignment instead of adding trailing spaces to labels 2017-10-19 07:14:58 +02: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
Larry Shaffer
a1efff793a [auth] Fix documentation error in QgsAuthCertUtils 2017-10-18 17:40:44 -06:00
Larry Shaffer
c66de14055 [auth] Add PKCS8 to PKCS1 key conversion for macOS (deps on libtasn1)
See description of QgsAuthCertUtils::pkcs8PrivateKey.

This fix may be needed on other platforms (untested at this point),
because Qt5 QSslkey class *still* does not directly support creation
using non-PKCS1 PEM- or DER-encoded data, though QCA, whose qca-ossl
plugin is linked to OpenSSL, does support PKCS1 and PKCS8.
2017-10-18 16:07:04 -06:00
Larry Shaffer
8107f91037 [auth] Move inline file reads to static func; add PKCS#8 sniffing func 2017-10-18 16:07:04 -06:00
Larry Shaffer
025c6f2e25 [auth] Add error trap and debug fixes for PKCS#12 auth method 2017-10-18 16:07:04 -06: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
lbartoletti
64cd1c5436 manual resolve conflicts for qgisapp.ui 2017-10-18 13:21:09 +02: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
lbartoletti
0d8d101242 Enable tools using extent when map is rotated 2017-10-18 11:28:03 +02:00
Jachym Cepicky
516540a201 Put GeoPackage at first place in the menu [FEATURE] [needs-docs] 2017-10-18 08:45:12 +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
Nyall Dawson
5a14a928cd Fix corrupted text in buttons 2017-10-18 10:25:36 +10:00
Borys Jurgiel
a66566a778 Plugin Manager: Disable focus by tab key for the 'Unistall' and 'Upgrade all' buttons to prevent from accidental execution 2017-10-17 23:30:49 +02:00
Borys Jurgiel
ccb46722f0 Plugin manager layout fixes 2017-10-17 23:14:16 +02:00