7305 Commits

Author SHA1 Message Date
Panos Mavrogiorgos
d8b0cdacb7 Make setting "Grass7AlgorithProvider.activateSetting" optional.
This change makes it easier to subclass `Grass7AlgorithProvider` which
allows e.g. to expose GRASS Addons as QGIS plugins.

Disclaimer: `Grass7AlgorithProvider` is a private API and it may change
            without warning. 3rd parties that rely on this should expect
            that their code will break in future releases.
            For more info please check the comments at #30252

Nevertheless, it currently is possible to subclass with something like this:

    class CustomGrassBasedProvider(Grass7AlgorithmProvider):
        # Set descriptionFolder to our own description directory
        descriptionFolder = os.path.join(os.path.dirname(__file__), 'description')

        # 3rd party plugins don't need an activation/deactivation setting
        activateSetting = None

        # define the rest of the methods that are needed (e.g. name(), id() etc)
        # ...

Fixes #30241
Continues #9202
2019-06-29 09:51:13 +10:00
Panos Mavrogiorgos
03f1ae9576 Stop hardcoding activation setting name in Grass7AlgorithmProvider 2019-06-29 09:51:13 +10:00
Juergen E. Fischer
6bdb259627 translation string fix 2019-06-27 13:58:46 +02:00
Alexander Bruy
509ab2985c
Merge pull request #30443 from alexbruy/batch-fix
use correct method name in the batch input selector for vector layers (fix #30410)
2019-06-27 14:52:11 +03:00
Martin Dobias
0a7386e6da [TilesXYZ] Add metatile size parameter
Larger values may speed up the rendering and provide better labelling (fewer gaps without labels)
at the expense of using more memory.

Ported from XYZ Tiles plugin - originally contributed by @nurenda
2019-06-27 13:37:50 +02:00
Alexander Bruy
49d0e996a7 use correct method name in the batch input selector for vector layers (fix #30410) 2019-06-27 12:38:30 +03:00
Alessandro Pasotti
7761f5f0fe
Merge pull request #30391 from troopa81/executesql_raise_unknown_geom
Raise an exception when geometry field autodetection has failed
2019-06-27 09:22:36 +02:00
Alexander Bruy
c224a01faf
Merge pull request #30377 from alexbruy/gdal-extra
[processing] allow passing additional command line parameters to GDAL algorithms
2019-06-26 19:50:43 +03:00
Fran Raga
aac040534f issue #30406 2019-06-26 08:59:53 +02:00
Matthias Kuhn
1cee45c8de
Merge pull request #30360 from m-kuhn/fix_use_before_assign
[dbmanager] Fix use before assign
2019-06-26 08:30:53 +02:00
Julien Cabieces
e63a94606d Raise an exception when geometry field autodetection has failed 2019-06-25 15:39:11 +02:00
Nyall Dawson
4a4b92223b [processing] Fix exception from field wrappers when "selected features only"
is checked for a vector layer
2019-06-25 18:56:51 +10:00
Alexander Bruy
543673c388 also split YAML-based tests into raster and vector and run them as part
of the corresponding algorithms test
2019-06-25 11:50:36 +03:00
Alexander Bruy
f16f7f765e reorganize gdal provider tests
Now GDAL algorithms test are splitted into parts: general tests, raster
algorithms and vector algorithms. This makes testing a bit faster and
easier, as there is no need to run not related tests.
2019-06-25 09:59:50 +03:00
Alexander Bruy
684083c4ca additional parameters for buildvrt algorithm 2019-06-25 09:59:50 +03:00
Alexander Bruy
57547a7731 additional parameters for translae algorithm 2019-06-25 09:59:50 +03:00
Alexander Bruy
3ed47c3bd9 add test for slope algorithm and allow additional command line
parameters
2019-06-25 09:59:50 +03:00
Alexander Bruy
61445ad0a2 additional parameters for sieve algorithm 2019-06-25 09:59:50 +03:00
Alexander Bruy
27aa8113de additional parameters for retile algorithm 2019-06-25 09:59:50 +03:00
Alexander Bruy
c313f1da50 additional parameters for proximity algorithm 2019-06-25 09:59:50 +03:00
Alexander Bruy
d66914aec6 additional parameters for polygonize algorithm 2019-06-25 09:59:50 +03:00
Alexander Bruy
1d12620579 additional parameters for pansarpening algorithm 2019-06-25 09:59:50 +03:00
Alexander Bruy
09102c7e7b more tests for nearblack algorithm
and add support for additional command line parameters
2019-06-25 09:59:50 +03:00
Alexander Bruy
629afb685c cover gdal merge algorithm with test and add support for additional
command line parameters
2019-06-25 09:59:50 +03:00
Alexander Bruy
97806eaa5d additional parameters for hillshade algorithm 2019-06-25 09:59:50 +03:00
Alexander Bruy
ceb0633f89 additional parameters for grid nearest neighbor 2019-06-25 09:59:50 +03:00
Alexander Bruy
d1562a4149 additional parameters for grid linear 2019-06-25 09:59:50 +03:00
Alexander Bruy
c351bb85fc additional command line parameters for grid IDW NN 2019-06-25 09:59:50 +03:00
Alexander Bruy
10062dcc80 additional parameters support for grid inverse distance 2019-06-25 09:59:50 +03:00
Alexander Bruy
3c03629fa7 additional parameters for grid data metrics algorithm 2019-06-25 09:59:50 +03:00
Alexander Bruy
629f299b17 additional parameters support for grid average algorithm 2019-06-25 09:59:50 +03:00
Alexander Bruy
1e7704ab60 additional parameters support in gdalinfo algorithm 2019-06-25 09:59:50 +03:00
Alexander Bruy
5b27b72191 allow additional parameters for gdal_calc 2019-06-25 09:59:50 +03:00
Alexander Bruy
c0c16cdd31 additional parameters for gdaladdo algorithm 2019-06-25 09:59:50 +03:00
Alexander Bruy
45b12a7e5c support for additional command line parameters and creation options in
the fillnodata algorithm
2019-06-25 09:59:50 +03:00
Alexander Bruy
18a56f97e0 allow pass additional parameters in the contour algorithm 2019-06-25 09:59:50 +03:00
Alexander Bruy
c64c2948d9 fix not used creation options parameter in the color relief algorithm and
allow to pass additional command line parameters to it
2019-06-25 09:59:50 +03:00
Alexander Bruy
0128135c64 allow to pass additional parameters to the clip raster by mask algorithm 2019-06-25 09:59:50 +03:00
Alexander Bruy
d40d040ebe allow to pass additional parameters to the clip raster by extent
algorithm
2019-06-25 09:59:50 +03:00
Alexander Bruy
7c06db6d7b allow to pass additional command-line parameters to aspect algorithm 2019-06-25 09:59:50 +03:00
Matthias Kuhn
c3e6b7236d
Update python/plugins/db_manager/db_plugins/postgis/connector.py
Co-Authored-By: Etienne Trimaille <gustrimaille@yahoo.fr>
2019-06-25 08:45:24 +02:00
Matthias Kuhn
95f63ec3b8 [dbmanager] Fix use before assign 2019-06-24 14:51:59 +02:00
Alexander Bruy
ff24ab53ef outputs can not be advanced 2019-06-24 20:09:57 +10:00
Alexander Bruy
625cc01fc3 [processing][feature][needs-docs] allow to define model parameters as
advanced
2019-06-24 20:09:57 +10:00
Alexander Bruy
94ec2dc72c
Merge pull request #30333 from alexbruy/postgis-layer
[processing] remove trailing semicolon from SQL before creating a layer (fix #30239)
2019-06-23 09:42:10 +03:00
Alexander Bruy
3039aeabd7
Merge pull request #30331 from alexbruy/random-points
[processing] assign correct ids to features in the random points in polygons algorithm (fix #26321)
2019-06-23 09:41:46 +03:00
Alexander Bruy
017f41f96c [processing] remove trailing semicolon from SQL before creating
layer (fix #30239)
2019-06-22 18:57:36 +03:00
Alexander Bruy
71fac3bbd2 [processing] assign correct ids to features in the random points in
polygons algorithm (fix #26321)
2019-06-22 16:58:56 +03:00
Alexander Bruy
53f1acd7bb [processing] set correct default for r.stream.extract algorithm (fix #30231) 2019-06-22 14:39:47 +03:00
Matthias Kuhn
3a30a5b6ba
Merge pull request #30320 from olivierdalang/fix_30260
fix #30260
2019-06-22 09:44:41 +02:00