87 Commits

Author SHA1 Message Date
Harrissou Sant-anna
1e2b59afc4 Make the target crs optional in gdal warp algorithm [needs-docs] 2019-06-11 13:43:38 +10:00
Harrissou Sant-anna
6e5976e640 Title case the resampling options 2019-05-20 08:52:54 +10:00
Harrissou Sant-anna
491ca3315f Make data type option translatable in GDAL algorithms dialog 2019-05-20 08:51:38 +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
b90a01847f
Prefer parameterAsBoolean over parameterAsBool 2019-04-16 08:30:00 +02:00
Nyall Dawson
c93775f6b1 [processing][gdal] Ensure that GDAL algs output the CORRECT
generated filename for outputs

Previously they were just echoing the input parameter value,
which isn't always a string and accordingly was broken for
temporary outputs. This caused models to break when the output
of a GDAL algorithm was used in a subsequent model step.
2019-02-05 16:55:34 +11:00
Nyall Dawson
f54f5a4fe7 [processing][gdal] Fix incorrect definition of gdal_warp extra_param parameter 2019-02-05 16:55:34 +11:00
Alexander Bruy
bb2c3663b0 [processing] add optional EXTRA parameter to gdalwarp algorithm (fix #20721)
This allows users to pass additional command-line arguments which are
not exposed in the algorithm definition. The most frequent use case is
enabling transparency and adding nodata values.
2019-01-22 09:39:57 +11:00
nirvn
8398aae04b [needs-docs][processing] Use input layer data type for gdal algorithms
when appropriate:
- warp (i.e. reproject)
- translate (i.e. file format conversion)
- rearrange bands
- clip by extent/mask
2018-09-04 16:20:03 +07:00
Alexander Bruy
f524460379 [processing] homogenize label for 'additional creation options'
parameter in GDAL algorithms
2018-08-02 12:11:20 +03:00
nirvn
ab3a213596 [ui][processing] re-order gdal warp algorithm parameters so optional ones are at the bottom 2018-07-16 11:53:02 +07:00
nirvn
fe38f03d5d [processing] make target res. parameter optional in gdal's warp algorithm 2018-07-16 11:53:02 +07:00
nirvn
863a2f0fca [processing] make nodata parameter optional in gdal's warp algorithm 2018-07-16 11:53:02 +07:00
Mathieu Pellerin
8f47691a7a
[processing] add gdal command name to tags for better searches (#6978) 2018-05-14 11:32:55 +07:00
Nyall Dawson
0d520456ea [processing][gdal] Fix conversion of non-EPSG crs parameters
to GDAL compatible strings
2018-05-11 11:29:34 +10:00
Nyall Dawson
f4599f13f1 [processing][gdal] Better error messages when invalid parameters are passed 2018-05-06 19:19:45 +10:00
Nyall Dawson
bddcb7dc42 [processing][gdal] More nodata handling fixes
Fixes #18748
2018-05-06 19:19:45 +10:00
Nyall Dawson
b3288192ee [processing] Fix exception when clicking help for GDAL algorithms 2018-05-06 07:13:15 +10:00
Nyall Dawson
00bb177f3d [processing][gdal] Fix parsing of creation options
Creation options must be specified one at a time - the
current approach causes them to be specified once embedded
in quotation marks, which is not valid input for gdal
2018-03-21 18:36:28 +11:00
Alexander Bruy
c10438e68a [processing] add missed parameter to warp algorithm 2018-01-29 18:48:08 +02:00
Alexander Bruy
891ca3cd11 [processing] fix wrong variable name 2018-01-26 19:35:40 +02:00
Alexander Bruy
53bc147dca [processing] add group id to GDAL algorithms 2017-12-14 18:04:11 +02:00
Nyall Dawson
96c7e6e0a6 [processing][gdal] Cleanup some code, add method to customise
generated command based on whether the algorithm is actually
executing or just being displayed in the UI as a command
2017-12-08 14:09:08 +10:00
Alexander Bruy
4c2c568f0a fix optional CRS parameter handling 2017-10-11 17:06:11 +03:00
Alexander Bruy
0f226645fa [processing] homogenize gdal algorithms
-consistent parameters naming
-use additional creation options where possible
-remove duplicated functionality
2017-10-11 17:06:11 +03:00
Alexander Bruy
7965d52aee [processing] use native API to get GDAL driver name from filename 2017-10-11 17:06:11 +03:00
Nyall Dawson
1cbbb8a0fb Port gdal aspect alg to new API 2017-08-14 05:05:39 +10:00
Nyall Dawson
2e7db48d20 Fix error in gdal warp algorithm 2017-08-14 04:56:36 +10:00
Nyall Dawson
5c888c5830 Resurrect gdal warp algorithm 2017-08-14 04:56:24 +10:00
Nyall Dawson
ba03f1a13a Move minimum layer extent calculation to c++ 2017-06-06 07:41:19 +10:00
Nyall Dawson
4cb7d18b1c Push parameters into processAlgorithm and related functions 2017-06-06 07:41:19 +10:00
Nyall Dawson
77ab933788 Move alg character definitions to __init__ 2017-06-06 07:41:19 +10:00
Alexander Bruy
abc74b4262 [processing] don't apply -te and -te_srs if not requested (fix #16519) 2017-05-10 15:47:29 +03:00
Alexander Bruy
3450a9ff89 [processing] add multithreading option to warp (fix #15340) 2017-04-29 15:39:49 +03:00
Nyall Dawson
a0bd464232 Use formatted name for algorithm names
Avoids conversion of names later and gives clearer separation
between visible names and internal names
2017-04-03 21:17:45 +10:00
Nyall Dawson
6987d7b37c Port handling of algorithm names to QgsProcessingAlgorithm 2017-04-03 21:17:45 +10:00
Nyall Dawson
dc729c1b5a Move algorithm group handling to QgsProcessingAlgorithm 2017-04-03 21:17:45 +10:00
Nyall Dawson
faa8a653b2 Move algorithm icon handling to QgsProcessingAlgorithm 2017-04-03 21:17:45 +10:00
Nyall Dawson
28e75731e1 Move tag handling to QgsProcessingAlgorithm 2017-04-03 21:17:45 +10:00
Juergen E. Fischer
c77172ed3d fix more flake8 warnings 2017-03-05 10:21:24 +01:00
Alexander Bruy
dbca0304d9 [processing] rename algorithm groups in GDAL provider 2017-02-28 12:37:48 +02:00
Alexander Bruy
f66646c483 [processing] remove code with GDAL 1.x API as QGIS 3 will require GDAL 2.x 2017-02-09 14:15:31 +02:00
Alexander Bruy
f9680ddc0c [processing] use custom options widget in GDAL algorithms 2017-01-07 10:02:13 +02:00
Nyall Dawson
3ef7b3b7eb [processing] Use standard QGIS projection selection widget for CRS params 2016-11-13 20:34:35 +10:00
Alexander Bruy
323c6582c6 [processing] add workaround for GDAL regression with cutlines (fix #15746) 2016-10-25 17:48:19 +03:00
Sandro Santilli
7971815343 Do not pass None to len() 2016-10-20 10:51:30 +02:00
Sandro Santilli
06976a2e87 Make Extent and Extent CRS GDAL parameters optional
Specify what the default is when extent CRS is not specified.
Allow using "auto" to have extent automatically set to min covering extent.

Fixes #15685
2016-10-20 10:51:30 +02:00
volaya
3b1dfa7071 [processing] made -te parameter optional in gdal warp 2016-10-10 08:05:11 +02:00
Juergen E. Fischer
31df84aa6b run 2to3 on source 2016-09-21 23:30:04 +02:00
Alexander Bruy
7f6bae1f5e [processing] use '-te_crs' parameter only if supported by GDAL 2016-07-28 13:39:22 +03:00