Nyall Dawson
1e82802d41
Fix SHAPE_ENCODING argument should not always get escaped
2021-02-08 13:23:40 +10:00
Nyall Dawson
988ad72926
Quotes also need to be escaped in gdal argument values
2021-02-08 13:23:40 +10:00
Nyall Dawson
716e74c74a
[processing] Use correct means to escape " values in GDAL commands
2021-01-09 07:16:14 +10:00
Nyall Dawson
b14dc49c85
[processing] Catch the gdal process console progress report output
...
and show algorithm progress bars when running GDAL algorithms
2021-01-09 07:16:14 +10:00
Nyall Dawson
54ec5acf1f
[processing] GDAL algorithms can now be canceled!
...
Previously there was no way to terminate the GDAL process, so if you
accidently got some parameter values wrong it was very easy to end
up with a quasi-endless, non-cancelable gdal algorithm burning away cpu in the
background of a qgis session... ouch!
2021-01-09 07:16:14 +10:00
Nyall Dawson
50b5e563af
[processing] Use QgsBlockingProcess instead of subprocess to run GDAL algorithms
...
This gives us much more flexibility when running the process, as we can
now do things like report feedback messages directly without having
to resort to potentially unsafe event loops regardless of whether the
algorithm is run in the main or a background thread.
2021-01-09 07:16:14 +10:00
Nyall Dawson
e79922b2cc
[processing] Return log lines from GdalUtils.runGdal instead of storing
...
in a class member
The previous approach was NOT thread safe, and it's easy to avoid
2021-01-09 07:16:14 +10:00
Nyall Dawson
02f861c339
[processing] Translate some strings when running gdal algorithms
2021-01-09 07:16:14 +10:00
Alexander Bruy
7c1d29c363
override default value only when tool executed from GUI
2020-11-27 16:45:59 +02:00
Alexander Bruy
fe58d4956c
[processing] don't set any default value for optional NODATA parameter
...
in GDAL rastrize algorithm (fix #39752 ).
As this is optional parameter better to have it not set by default to
avoid unexpected conversion of valid values to nodata values.
2020-11-27 06:51:01 +02:00
Nyall Dawson
347885b58c
Astyle
2020-11-24 13:14:08 +10:00
Nyall Dawson
b89d7fd088
[processing][gdal] Don't default to placing each input file in a separate
...
band in build vrt algorithm
Creating a multi-band vrt is much less common vs creating a mosaic
style vrt, so set the default to the most common use case
and most predictable outcome.
2020-11-24 13:11:37 +10:00
Denis Rouzaud
eddf6feb45
modernize CMakeLists.txt files
2020-11-12 07:14:46 +10:00
Alexander Bruy
41dc20c2c1
Merge pull request #38841 from rldhont/processing-gdal-clipbyextent
...
[Processing][GDAL] Clip Raster by extent - override CRS
2020-10-28 18:18:14 +02:00
Alexander Bruy
bfdb99fe65
[processing] correctly escape parentheses in GDAL command ( fix #39525 )
2020-10-28 06:07:27 +10:00
rldhont
90e9eda818
Processing - GDAL - Raster clip by extent - override CRS
2020-10-27 14:34:44 +01:00
admire
2bcddfb4e1
Allow importing vector dimensions greater than 3 and other geometry types
2020-10-24 10:59:06 +10:00
Even Rouault
c6fe79b60d
[Processing] GdalUtils: fix quoting of arguments with '&' ( fixes #38674 )
2020-09-15 07:38:01 +10:00
rldhont
6c44073ff0
[Processing] Fix GDAL Assign Projection: update QgsRasterLayer crs
...
Even if the projection is assign, the QgsRasterLayer and the QgsRasterDataProvider was not updated.
The fix reloads the QgsRasterDataProvider's data and updates the QgsRasterLayer's crs.
Fixed #37920
2020-07-31 14:32:48 +02:00
nirvn
5385ae64d4
[processing] Make gdaladdo optional parameters truly optional
2020-06-10 13:13:58 +07:00
Nyall Dawson
adeca2f586
[processing] Fix double-evaluation of warp output parameter
...
Causes an incorrect warning about layer not being generated to appear
after running the algorithm
Fixes #30095
2020-05-26 15:45:40 +10:00
Nyall Dawson
c6690c2ee8
Create runtime profiles for various startup/provider initialisation
...
tasks in processing
Attempting to diagnose occasional very slow QGIS startup times
2020-05-19 04:35:34 +10:00
Nyall Dawson
b6a7a10703
Fix some more python formatting issues, remove more flake exceptions
2020-05-11 11:41:50 +10:00
Nyall Dawson
40db7f9efd
[processing] Fix subset string is ignored for vector layers when
...
running GDAL algorithms
If a subset string is set, we must export the subset of the layer
for use by the GDAL command*
Fixes #35981
* well, we probably **should** just build the gdal command to include
the SQL definition of the subset filter, but that's non-trivial, so
this fix is a good simple solution for now
2020-04-28 19:21:00 +10:00
Nyall Dawson
5b6589f6dc
Cleanup QgsCoordinateReferenceSystem WKT enum
...
- alias WKT_2018* to new WKT_2019* values, since the spec is actually
2019, not 2018
- add WKT_PREFERRED value which currently aliases to WKT2_2019, but
can be changed if/when future bumps to the WKT spec happen
- add WKT_PREFERRED_GDAL which should be used whenever a CRS is
exported to WKT for use with GDAL API. Aliases to WKT2_2019 currently,
but can be changed if/when a new spec is released and GDAL supports it
2020-04-24 03:59:28 +10:00
Nyall Dawson
6a1a2e9af0
[processing] Fix handling of vrt, SAGA tif output file names
...
Fixes #35755 , fixes #35770
2020-04-17 16:18:09 +10:00
Paul Wicks
b73bd58cfb
[FEATURE][processing] New algorithm "Contour Polygons"
...
With similar functionality to the existing GDAL contour algorithm, but exporting polygon representations of the contours
2020-04-08 08:34:55 +10:00
Nyall Dawson
a80bdc47e5
[processing] Add API and interfaces so that widget wrappers can retrieve the
...
current set of parameters for other parameters when required
2020-04-04 17:58:55 +10:00
Nyall Dawson
c98cd8d1a8
Partial port of destination wrappers to c++ API
2020-04-02 02:29:54 +10:00
Nyall Dawson
9500020b0f
Fix exception when opening gdal algorithms
2020-03-25 09:42:17 +10:00
Nyall Dawson
3d6e4963f6
[processing] Move base class of ParametersPanel to c++
2020-03-25 09:42:17 +10:00
Nyall Dawson
8b54d2f06c
[processing] Fix conversion of ESRI CRS when running GDAL algorithms under proj 6
...
Fixes #35123
2020-03-17 16:58:09 +10:00
Nyall Dawson
cd2caf84f7
Raise an exception when connection is not specified
2020-03-17 15:10:53 +10:00
Nyall Dawson
97e47fa7b8
[processing] Use core connections API instead of Python GeoDB class
...
for postgres connection handling
2020-03-17 15:10:53 +10:00
Nyall Dawson
517aa9667b
[processing] Port DestinationSelectionPanel to c++
...
This is basically a 1:1 port (+some fixes relating to incorrect signal
emissions and many more tests)
2020-03-17 07:24:40 +10:00
Nyall Dawson
edfc51139b
Remove unused redundant algorithm
2020-03-14 16:57:14 +10:00
Nyall Dawson
83d2a816fb
[processing] Use proper database schema/table name widgets in algorithms
2020-03-14 16:57:14 +10:00
Nyall Dawson
f587430d23
Remove ad-hoc python provider connection parameters and replace
...
with proper provider connection parameters
2020-03-10 19:10:52 +10:00
Harrissou Sant-anna
b0bffba9a1
Add short help to gdal's build virtual vector alg
2020-01-29 11:42:06 +10:00
Alexander Bruy
5e62e60de9
[processing] add user-defined parameters to gdal_rasterize
2020-01-06 11:19:55 +10:00
Nyall Dawson
fcdf1f6e78
Fix test
2020-01-05 20:58:10 +10:00
Nyall Dawson
42885bfbb7
[needs-docs][processing] Move Build Vector VRT to gdal provider
...
and setup alias to avoid script/model breakage. This algorithm
uses GDAL utilities and fits better alongside the other GDAL based
algorithm rather than in the qgis provider.
2020-01-05 20:58:10 +10:00
Andrea Giudiceandrea
19465c6295
Fix validity mask filename quoting in Fillnodata alg
...
Fixes a bug similar to #33562
2020-01-01 09:07:58 +10:00
Andrea Giudiceandrea
fbca3641e5
Fix validity mask filename quoting in Sieve alg
...
Fixes #33562
2020-01-01 09:07:58 +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
Håvard Tveite
512eb4d2b8
Fix the label of the output parameter of the TPI algorithm
2019-12-13 11:09:45 +01:00
Alexander Bruy
1c1ceb1112
add note about height parameters for users who don't want to read docs
2019-11-06 13:40:34 +10:00
Alexander Bruy
e11e635aa6
use distance parameter
2019-11-06 13:40:34 +10:00
Alexander Bruy
02fbe42a30
[FEATURE][needs-docs][processing] add gdal_viewshed algorithm
2019-11-06 13:40:34 +10:00
Alexander Bruy
f4843f167f
ensure that input raster is set
2019-11-05 12:44:43 +10:00