Nyall Dawson
ef19911f11
[processing][grass] Correctly return the actual generated filename
...
locations as the algorithm results, don't just echo back the parameter
value
Otherwise we don't return the correct value for temporary file locations
or for file paths during model execution
Fixes #36379
2020-06-12 05:00:49 +10:00
Alexander Bruy
e014684b56
[processing] fix r.tileset algorithm
2020-05-24 20:38:28 +03:00
Alexander Bruy
938dc618b1
update algorithms which use "ext" mechanism
2020-05-22 11:13:22 +03:00
Alexander Bruy
b5d323c583
[processing] fix handling for stdout and file outputs in GRASS
...
algorithms when temporary files are used
2020-05-22 10:30:07 +03:00
Nyall Dawson
b6a7a10703
Fix some more python formatting issues, remove more flake exceptions
2020-05-11 11:41:50 +10:00
Alexander Bruy
0b749558b9
[processing] add proper support for range parameters ( fix #29269 )
2020-01-06 11:19:55 +10:00
Panos Mavrogiorgos
0c3cb558a8
Introduce GRASS_USE_REXTERNAL setting
...
GRASS GIS, in addition to importing data in its native formats via
`r.in.gdal`/`v.in.ogr` (and likewise `r.import`/v.import`),
also supports `r.external`/`v.external` which only link the data into
the GRASS DB.
Nevertheless, both `r.external` and `v.external` occasionally have problems,
especially on windows. E.g.:
- https://trac.osgeo.org/grass/ticket/3927
GRASS 7 Processing Plugin already has a setting that controls whether
`v.external` is used (disabled by default).
With this commit the complementary setting for `r.external` gets added too.
Usage of `r.external` is disabled by default. This is changing the existing
behavior, which was to use r`r.external`. The downsides of this change
should be the somewhat lower import speed + higher disk usage. Nevertheless
this way we have the same default value as `v.external` + we circumvent the
`r.import/v.import` shortcomings.
2020-01-02 18:26:49 +10:00
Nyall Dawson
b37dd0984e
Rip off a band aid, and deprecate all "proj4" calls from the API
...
Alias these across to new "proj" methods, which don't include the
version number.
2019-12-20 12:13:06 +10:00
Alexander Bruy
75bc01bf58
Fix default value
2019-11-05 08:16:56 +02:00
Giovanni Manghi
0c4dbf9f4c
fixes default GRASS output geometry type
2019-11-04 23:44:01 +00:00
Alexander Bruy
807564a435
[processing] improve handling of the HTML outputs in GRASS provider ( fix #30609 )
2019-07-16 06:20:23 +10:00
Bas Couwenberg
2628c480c5
Don't include revision in sources.
...
Prevent changes to files that weren't changed between releases.
This eases review of the changes between releases significantly.
2019-05-17 16:47:47 +02:00
Matthias Kuhn
8416e7588c
Merge pull request #9781 from m-kuhn/processing_parameter_as_boolean
...
Add QgsProcessingAlgorithm::parameterAsBoolean
2019-04-17 09:20:07 +02:00
Alessandro Pasotti
0d7841a0d8
Fix grass alg combineLayerExtents
2019-04-17 10:06:41 +10:00
Nyall Dawson
b6bc1ee2d4
Tweak QgsProcessingUtils::combineLayerExtents for future proofing, remove deprecated usage
2019-04-17 10:06:41 +10:00
Matthias Kuhn
b90a01847f
Prefer parameterAsBoolean over parameterAsBool
2019-04-16 08:30:00 +02:00
Nyall Dawson
f5a3485eae
Fix some Python warnings, avoid accidently hiding all deprecation warnings
2019-03-28 11:47:23 +10:00
Nyall Dawson
ac651ee0d9
Followup 8d51a693, fix broken plugins
2019-03-27 07:20:43 +10:00
Denis Rouzaud
8d51a693a1
missing changes of QgsMapLayer::Type => QgsMapLayerType
2019-03-26 14:09:19 -05:00
Juergen E. Fischer
9f1fcb72d4
processing: enable translation for parameter descriptions
2019-03-05 20:16:23 +01:00
Alexander Bruy
b9f559ee04
[processing] fix broken stdout handling in GRASS algs ( fix #21142 )
2019-01-31 15:54:08 +02:00
Alexander Bruy
19dcfb987b
don't export features without category by default
2019-01-30 10:40:29 +02:00
Alexander Bruy
0cc483f621
set default value for newly added parameter
2019-01-30 08:12:22 +02:00
Alexander Bruy
67bc586036
fix formatting
2019-01-30 08:12:22 +02:00
Giovanni Manghi
5f99955b45
do not always use the -c flag to export vectors from GRASS
2019-01-30 08:12:22 +02:00
Juergen E. Fischer
b39e5a0937
processing: add windows support to exportRasterLayersIntoDirectory ( fixes #20146 )
2018-11-11 03:15:21 +01:00
Nyall Dawson
f65c845f86
[processing][GRASS] Correctly handle input vector layers with |layername= param
...
Fixes #20277
2018-11-01 18:36:53 +10:00
Nyall Dawson
82ac04d6f7
[processing][GRASS] Give some more feedback when trying to use
...
v.external for reading inputs, and if we can't, advise why not
2018-11-01 18:36:53 +10:00
Nyall Dawson
113e16351d
[processing][grass] Fix skipped outputs are still added in grass commands
2018-08-09 12:32:27 +10:00
Nyall Dawson
fed345b12b
[processing][grass] Make a copy of the parameters dict before doing grass modifications
...
Since grass algorithms modify the parameters dictionary, we need to ensure
that they do this only a copy of the dict (and not a shallow copy). Otherwise
the parameter values included in the history log are the internally
modified values, not the original user-set ones
2018-07-25 09:23:36 +10:00
Tom Chadwin
9780068548
Avoid deprecated regex
...
Avoid invalid escape sequence via raw string:
`re.compile('^[^\s\(]+')` > `re.compile(r'^[^\s\(]+')`
2018-06-06 06:24:24 +10:00
Nyall Dawson
30ecb33855
[processing][GRASS] Fix some algorithms always export as GPKG, regardless of format selected
2018-06-01 16:53:00 +10:00
Nyall Dawson
0e7c31e9e7
[processing][grass] Fix handling of optional file parameters
2018-06-01 11:54:31 +10:00
Nyall Dawson
59d425c5b0
[processing] Fix some incorrect formatting of algorithm titles
2018-05-31 15:27:51 +10:00
Nyall Dawson
6bf5274b11
[processing] Fix some missing references warnings
2018-05-30 08:51:30 +10:00
Nyall Dawson
a26ae3c1d9
[processing][grass] Fix broken checkParameterValues tests
2018-05-28 16:02:38 +10:00
Nyall Dawson
5edcc64f72
[processing] Allow algorithms to return a translated short description
...
This is used in the algorithm's tooltip in the toolbox, and is intended
for single sentence description of the algorithm, e.g.
"Converts 2D features to 3D by sampling a DEM raster."
Convert grass algorithms to use short description for the
descriptive parts of their names, to cleanup the toolbox
and make it more uniform.
2018-05-17 08:50:39 +10:00
Alexander Bruy
67965ca3d0
[processing] use GPKG as default output format for GRASS
2018-05-15 13:15:00 +03:00
Alexander Bruy
8aa56fc38f
[processing] fix GRASS vector tests
2018-05-15 12:53:50 +03:00
Alexander Bruy
cf599685cb
[processing] vector outputs can be saved in any GDAL-supported format
...
Thanks to Médéric RIBREUX
2018-05-15 10:57:09 +03:00
Nyall Dawson
f03baa871a
[processing][grass] Don't try to create skipped optional outputs
2018-04-10 09:57:58 +10:00
Nyall Dawson
1fc5a0e597
[processing][grass] Fix broken r.statistics alg
2018-04-10 09:57:58 +10:00
Nyall Dawson
92634a9d92
[processing][grass] Allow use of feature sources as vector inputs
2018-04-09 10:58:41 +10:00
Nyall Dawson
aca75cfa6e
[processing][grass] Fix use of v.external with ogr layers which
...
do not support random read
These layers are not compatible with v.external, so we have to
use v.in.ogr for them
2018-04-09 10:58:41 +10:00
Nyall Dawson
8ba762a630
[processing][grass] Fix grass vector algs don't work with memory layers
...
Fixes broken grass algs inside models (fixes #18662 )
2018-04-09 10:58:41 +10:00
Nyall Dawson
c50a039745
[processing][grass] Push feedback object to algorithm methods
2018-04-09 10:58:41 +10:00
Nyall Dawson
bec878f6f9
[processing][grass] Fix error after running grass algorithms
2018-03-27 07:10:37 +11:00
Alexander Bruy
22fea14a17
[processing] remove explicit outputs definitions
2018-03-02 10:35:56 +02:00
Nyall Dawson
44896c3636
[processing] Fix grass point parameter evaluation
2018-02-26 17:10:09 +11:00
Juergen E. Fischer
dcfe5ca63f
update translation strings
2018-02-18 17:35:34 +01:00