Nyall Dawson
8ef960442d
[processing] Use lists, not maps in overlap analysis algorithm
...
Ensures consistent field ordering and that fields are always matched
to input layer order
2019-07-26 10:21:20 +10:00
Nyall Dawson
da1b5637af
Fix deprecated gdal import warnings
2019-07-25 11:25:51 +10:00
Alexander Bruy
d0b8d6210c
Merge pull request #30715 from alexbruy/gdal-layers
...
[processing] pass layer name to the gdalwarp to avoid issues with multi-layer datasources (fix #30292 )
2019-07-18 10:21:03 +03:00
luz.paz
604e66ba75
sipify_all
2019-07-16 11:29:42 +10:00
Alexander Bruy
e45b62c6af
re-enable some disabled test and fix broken r.describe algorithm
2019-07-16 06:20:23 +10:00
Alexander Bruy
807564a435
[processing] improve handling of the HTML outputs in GRASS provider ( fix #30609 )
2019-07-16 06:20:23 +10:00
Alexander Bruy
109d1fb7a8
[processing] pass layer name to the gdalwarp to avoid issues with
...
multi-layer datasources (fix #30292 )
2019-07-15 16:05:16 +03:00
Alexander Bruy
5709f84b2f
[processing] add createByDefault argument to directory output
...
constructor
2019-07-15 08:51:01 +10:00
Alexander Bruy
9ed4d08d5b
[processing] ignore hidden parameters when generating GDAL command ( fix #30669 )
2019-07-15 07:52:36 +10:00
Nyall Dawson
e0093e1d11
[processing] Don't abort when an algorithm step fails in batch mode
...
Instead, record errors and report them all at the end of the batch
process. If we abort the remaining batch steps when encountering any
error, this blocks a useful use of the batch mode and prevents users
from running a batch process over a large number of input files, some
of which may be invalid.
2019-07-15 06:35:14 +10:00
Alexander Bruy
84c530b97b
[processing] make color parameter available to description-based algs
2019-07-09 06:14:48 +03:00
Nyall Dawson
ec246e3ddb
[processing] Fix batch mode 'fill with parameter values' option for outputs
...
Fixes #30543
2019-07-09 07:20:20 +10:00
Nyall Dawson
e05572a11d
Port file parameter definition widget to new APi
2019-07-08 15:07:42 +10:00
Nyall Dawson
aa8d5cd22e
[processing] Fix API break which breaks some 3rd party providers (e.g. R and Javascript providers)
2019-07-08 13:26:55 +10:00
Alexander Bruy
d3091e7d64
[processing][needs-docs] allow to set tiles background ( fix #30490 )
2019-07-03 12:15:47 +03:00
Nyall Dawson
b8e53dc012
Add missing visual links between layout and layout item parameters in models
2019-07-01 17:01:34 +10:00
Nyall Dawson
a9788339ea
Port an item type which has a parent parameter choice (layout items) for reference
2019-07-01 17:01:34 +10:00
Nyall Dawson
d83997c490
Port string parameter to new config widget
2019-07-01 17:01:34 +10:00
Nyall Dawson
477d3b1f1a
Port boolean widget config dialog to new API
2019-07-01 17:01:34 +10:00
Nyall Dawson
10d6a8a122
[processing][API] Add API to QgsProcessingGuiRegistry and QgsProcessingParameterWidgetFactoryInterface
...
to handle creation of parameter definition widgets
Previously, these configuration widgets were all hardcoded into the Python modeler
dialog. This prevented 3rd party, plugin provided, parameters from ever being full
first class citizens in QGIS, as there was no way to allow their use as inputs to
user created models to be customised.
Now, the registry is responsible for creating the configuration widget, allowing
for 3rd party parameter types to provide their own customised configuration
widgets.
Refs #26493
2019-07-01 17:01:34 +10:00
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
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