54672 Commits

Author SHA1 Message Date
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
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
Blottiere Paul
365e01a1a0 Remove invalid layer in test 2019-03-27 14:59:06 +01:00
Blottiere Paul
f9981ac8d9 Fixes external layers 2019-03-27 14:59:06 +01:00
Blottiere Paul
09e9df1e94 Add WMS render context 2019-03-27 14:59:06 +01:00
Blottiere Paul
51ab846d8e
Merge pull request #9545 from signedav/getlegendgraphics_HEIGHTWIDTH
SRCHEIGHT/SRCWIDTH for GetLegendGraphic request
2019-03-27 14:27:27 +01:00
David Signer
cf595f9454 use direct widthAsInt/heigtAsInt in GetFeatureInfo 2019-03-27 12:51:52 +01:00
David Signer
61a89af4c1 decide in qgswmsrenderer if SRCWIDTH (for GetLegendGraphic) or WIDTH (for GetMap) is used 2019-03-27 11:53:54 +01:00
David Signer
6722ad5917 fallback possibility if HEIGHT is used on GetLegendGraphics for maps as well 2019-03-27 11:53:54 +01:00
David Signer
e1847725e4 use of SRCHEIGHT SRCWIDTH intead of HEIGHT WIDTH 2019-03-27 11:53:54 +01:00
David Signer
4c667ada96 SRCHEIGHT SRCWIDTH and the logical part for selection
it takes these values as map size in case of GetLegendGraphics Request and still HEIGHT and WIDTH if not a GetLegendGraphics Request
because this parameter is called from multiple used functions, this logical part is in the getWidthAsInt and getHeightAsInt functions
getHeight and getWidth can be used still like before
2019-03-27 11:53:54 +01:00
Juergen E. Fischer
8e70c08b18 osgeo4w: fix grass shortcuts in qgis-dev (fixes #21680) 2019-03-27 10:44:20 +01:00