54887 Commits

Author SHA1 Message Date
Blottiere Paul
bf02a05b01 Remove old constructor 2019-03-28 16:50:14 +01:00
Blottiere Paul
cbe73c1e71 Update security exceptions 2019-03-28 16:44:48 +01:00
Blottiere Paul
75ba90955d Fix compilation 2019-03-28 16:33:17 +01:00
Martin Dobias
8b2e1880db [quick] Fix validity condition in QgsQuickFeatureLayerPair
The extra condition enforcing that feature's geometry needs to have Z coordinate
if also its parent layer has Z coordinates was not doing good job and surprisingly
marking also valid geometries as invalid if layer type was PointZ but the geometry
had undefined Z value. This caused issues in IdentifyKit not picking up some features.
2019-03-28 13:49:04 +01:00
Blottiere Paul
4c09957b5e Update exceptions for StyleNotDefined and LayerNotQueryable 2019-03-28 12:34:10 +01:00
Blottiere Paul
2fc3da3e7a Manage LayerNotDefined exception 2019-03-28 12:27:12 +01:00
Blottiere Paul
5eca1f1bfd Update InvalidCRS / InvalidSRS exception according to the version 2019-03-28 12:05:01 +01:00
Blottiere Paul
2430d9cc8b Update InvalidPoint exception 2019-03-28 11:44:29 +01:00
Blottiere Paul
37b9499fc7 Update InvalidFormat exception 2019-03-28 11:40:52 +01:00
Blottiere Paul
daa5e42839 Add whole parameter in exception to format message 2019-03-28 11:35:46 +01:00
Blottiere Paul
86e9818f14 Update exceptions for internal errors in renderer 2019-03-28 11:34:51 +01:00
Blottiere Paul
95f4d3769a Add more exception in getPrint 2019-03-28 11:34:51 +01:00
Blottiere Paul
0f0438f675 Auto format message for invalid parameter value 2019-03-28 11:34:51 +01:00
Blottiere Paul
bdda3715c4 Add more auto formatted message for missing parameter 2019-03-28 11:34:50 +01:00
Blottiere Paul
cac591c3b7 Add unit tests 2019-03-28 11:34:50 +01:00
Blottiere Paul
f5171b810d Auto format message for missing parameter 2019-03-28 11:34:50 +01:00
Blottiere Paul
c5817cb413 Add unit tests 2019-03-28 11:32:51 +01:00
Blottiere Paul
60b308e1b6 Add an enum for exception codes 2019-03-28 11:32:51 +01:00
Blottiere Paul
d7f12ea5b4
Merge pull request #9624 from pblottiere/server_context_3
[server] Add a WMS render context
2019-03-28 09:13:20 +01:00
Alessandro Pasotti
5b5cc50b9e
Merge pull request #9620 from elpaso/bugfix-badlayers-storage
Bugfix badlayers storage
2019-03-28 08:14:53 +01:00
Nyall Dawson
20ec29a496 [processing] Refine check for usable layers (#9640)
- allow WMS layers and other non-GDAL raster layers. This will work
fine for native algorithms, likely not work for other providers. They
will need to be adapted to throw errors when incompatible raster
layer providers are used

- invalid layers are not permitted (e.g. those with missing data
sources)
2019-03-27 22:29:53 -05:00
Nyall Dawson
f5a3485eae Fix some Python warnings, avoid accidently hiding all deprecation warnings 2019-03-28 11:47:23 +10:00
Nyall Dawson
234c1718c4 Mark some Processing methods as deprecated 2019-03-28 11:47:23 +10:00
Nyall Dawson
7aca208522 Update processing script template 2019-03-28 11:47:23 +10:00
Nyall Dawson
f758d8b282 Ensure all public, stable API methods for Processing have nice docstrings 2019-03-28 11:47:23 +10:00
Nyall Dawson
7e80fc8391 Drop isWindows/isMac from stable Processing API 2019-03-28 11:47:23 +10:00
Nyall Dawson
64387a2254 [needs-docs][processing] Monkey patch stable external Processing API into qgis.processing
Instead of encouraging use of the internal Processing modules
(e.g. from processing.tools.general import run , import processing, ...)
instead expose all Python specific STABLE processing additions
to the qgis.processing module.

Instead, scripts and plugins should now use

from qgis.processing import run, algorithmHelp,...

This makes a clear distinction between internal Processing python
modules (i.e., everything else!) and the parts of Processing
which are stable and designed to be used by plugins and scripts.

TODO: QGIS 4.0 -- move the internal Processing plugin modules
to __processing, to clearer indicate that this is all internal
stuff.
2019-03-28 11:47:23 +10:00
Nyall Dawson
bf7d9cb6f8 Don't use copyright license as a module docstring 2019-03-28 11:47:23 +10:00
Nyall Dawson
cd9fc06f51 Silence cmake CMP0048 warning 2019-03-28 09:46:56 +10:00
Denis Rouzaud
631c7016db
scope enum for QgsProcessing::LayerHint (#9639) 2019-03-27 17:23:36 -05:00
lbartoletti
155e0eb507 [needs-docs] Fixes intersection on (multi)linestring/polygon Z, M and ZM. Fixes #21422 2019-03-27 22:14:40 +01:00
Blottiere Paul
131b6591a5 Fix compilation 2019-03-27 21:20:47 +01:00
Denis Rouzaud
7fb752e0ff
[TRAVIS] run flaky test when label is defined (#9509)
to declare a test as flaky:

* for cpp, use

```
if ( !QgsTest::runFlakyTests() )
    QSKIP( "This test is disabled on Travis CI environment" );
```

* for Python, you can use `RUN_FLAKY_TEST` environment variable
2019-03-27 09:45:34 -05:00
Denis Rouzaud
b9fdd02db6 fix copy in Dockerfile 2019-03-27 09:12:53 -05:00
Blottiere Paul
20a26a0dd6 Minor cleaning 2019-03-27 15:00:39 +01:00
Blottiere Paul
a159c01901 Remove unnecessary members from renderer 2019-03-27 15:00:39 +01:00
Blottiere Paul
0b68762b4d Remove more methods from renderer 2019-03-27 15:00:39 +01:00
Blottiere Paul
dedf0abaeb Move another method to context 2019-03-27 15:00:38 +01:00
Blottiere Paul
5c874ca554 Remove some unnecessary methods from renderer 2019-03-27 15:00:38 +01:00
Blottiere Paul
59eadbb5c6 Move some methods from renderer to context 2019-03-27 15:00:38 +01:00
Blottiere Paul
ca602ec99e Update doc for QgsRenderer 2019-03-27 15:00:38 +01:00
Blottiere Paul
389076f813 Add doc for QgsWmsRenderContext 2019-03-27 15:00:38 +01:00
Blottiere Paul
dcd43dc5c3 Remove some unused methods 2019-03-27 15:00:38 +01:00
Blottiere Paul
5f4c052125 Update getFeatureInfo with render context 2019-03-27 15:00:38 +01:00
Blottiere Paul
b702c30eb7 Update dxf unit tests 2019-03-27 15:00:38 +01:00
Blottiere Paul
66d4de64f7 Update getDxf with render context 2019-03-27 15:00:38 +01:00
Blottiere Paul
24f3f97011 Update getPrint with render context 2019-03-27 15:00:38 +01:00
Blottiere Paul
8a46e2ffff Update getLegendGraphics with render context 2019-03-27 15:00:38 +01:00
Blottiere Paul
47b4d05283 Update getMap with render context 2019-03-27 15:00:38 +01:00
Blottiere Paul
ec06223555 Add main loop to configure layers 2019-03-27 15:00:38 +01:00