54754 Commits

Author SHA1 Message Date
Alessandro Pasotti
013bdf9405 Fix wrong field length in file writer
fixes #21714
2019-03-31 20:51:21 +02:00
Alessandro Pasotti
ca80fb6052
Merge pull request #9653 from elpaso/bugfix-badlayers-apply-no-style
Fix bad layers style loss when "apply"
2019-03-30 10:32:30 +01:00
nirvn
41f3ac0bbc [ui] Don't disable 'keep unavailable layers' button when applying changes 2019-03-30 10:41:48 +07:00
lbartoletti
59c00b8823 add tests 2019-03-30 11:03:01 +10:00
lbartoletti
e3d0005a82 Fix a crash when asJson is called on an empty PolygonGeometry 2019-03-30 11:03:01 +10:00
volaya
165ab8b25f [processing] do not export input sdat files 2019-03-30 11:02:25 +10:00
Juergen E. Fischer
b9a53d4204 osgeo4w: fix starting of qt5 designer 2019-03-29 21:45:04 +01:00
Blottiere Paul
43ed203e89
Merge pull request #9646 from pblottiere/server_exceptions
[server] Sanitize WMS exceptions
2019-03-29 15:30:25 +01:00
Blottiere Paul
9ae06a52bf Fix test 2019-03-29 14:59:38 +01:00
Blottiere Paul
fd4ac20ea8 Update tests 2019-03-29 14:15:42 +01:00
Blottiere Paul
7e39226879 Remove unused qgis exception code 2019-03-29 14:15:27 +01:00
Blottiere Paul
8944465af5 Update doc 2019-03-29 12:20:39 +01:00
Blottiere Paul
0fe739d987 Update unit tests 2019-03-29 12:12:59 +01:00
Alessandro Pasotti
94b9d8f6f6 Fix bad layers style loss when "apply" 2019-03-29 11:08:16 +01:00
Juergen E. Fischer
559a4cb2a2 debian packaging: add qgis-providers dependency to python3-qgis in case only the bindings are installed 2019-03-29 09:19:22 +01:00
Juergen E. Fischer
939caaa77d fix windows build 2019-03-29 08:31:19 +01:00
Juergen E. Fischer
957c51e691 debian packaging: add transitional package for python3-qgis(-common)
(cherry picked from commit cfe88521b6881344c67d81d29e37f3a9e11c593a)
2019-03-29 08:26:18 +01:00
Blottiere Paul
8d9d90915a Raise an internal error instead of an unknown error 2019-03-28 16:52:52 +01:00
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
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