Nyall Dawson
f045fa2420
Followup aa590b7, more tolerant progress matching
2022-11-30 08:14:02 +10:00
Nicolas Godet
aa590b7302
Better handling of GDAL progess report
2022-11-29 09:44:42 +10:00
Nyall Dawson
fe566bcc09
Merge pull request #41847 from nyalldawson/fix_41839
...
Fix many issues in gdal algs...
2021-02-27 09:34:39 +10:00
Nyall Dawson
c5dd8714a8
[processing] Fix escaping of srcnodata argument in Build Virtual Raster
...
alg
2021-02-26 12:02:59 +10:00
Nyall Dawson
ea113cbf4a
[processing][gdal] ";" characters must be escaped when running gdal
...
commands
2021-02-26 11:30:49 +10:00
Andrea Giudiceandrea
d43245c6ac
[processing] Fix sort order of output raster extensions list
...
to make it easier to find the extension in the long list of available extensions in the "Save to File" window of the GDAL provider algorithms
2021-02-25 07:49:02 +01:00
Andrea Giudiceandrea
91c8b23e90
[processing] Fix GdalUtils getSupportedRasters()
...
in order to correctly retrieve multiple extensions from GDAL drivers metadata DMD_EXTENSIONS instead of DMD_EXTENSION. See https://gdal.org/development/rfc/rfc46_gdal_ogr_unification.html#drivers-and-driver-registration
2021-02-25 07:36:19 +01:00
Nyall Dawson
e11801d34e
Require Proj version 6 or later, drop old proj 4 compatibility code
2021-02-23 12:47:04 +10:00
Nyall Dawson
af0fb8bb87
[processing] Fix GDAL algorithms hang when gdal command is not available to run
2021-02-21 15:04:31 +10:00
Evan Derickson
0e63799012
Reduce appends
2021-02-20 12:26:00 +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
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
bfdb99fe65
[processing] correctly escape parentheses in GDAL command ( fix #39525 )
2020-10-28 06:07:27 +10:00
Even Rouault
c6fe79b60d
[Processing] GdalUtils: fix quoting of arguments with '&' ( fixes #38674 )
2020-09-15 07:38:01 +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
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
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
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
af77d68716
return only base URL as connection string
...
adopt ogrinfo and ogrtabletopostgis algorithms so they can work with WFS
2019-09-13 11:11:53 +03:00
Alexander Bruy
4b7eaa4b9c
[processing] support for WFS layers in GDAL algorithms ( fix #29663 )
2019-09-13 09:14:04 +03:00
Juergen E. Fischer
19933e0feb
processing: avoid fetching the layer parameters when not executing
2019-06-01 09:10:39 +02:00
Juergen E. Fischer
5a54eb7739
processing: add option to select directory to recurse for files (fixes regression with a number of tools that used to have this - eg. buildvrt for instance)
2019-05-31 19:02:48 +02: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
Nyall Dawson
e5a416ea11
[processing][gdal] Ensure no filename clashes occur in writeLayerParameterToTextFile
2019-02-19 12:55:15 +10:00
Nyall Dawson
06d5b996bf
[processing][gdal] Fix polygonize field name is ignored
2019-02-06 04:16:40 +11:00
Harrissou Sant-anna
ea9b09f2dc
Use QGIS user manual for GDAL algorithms help files
...
because they are available for most of the algs and wouldn't be used otherwise. Also when someone hits algA help button, he should be given the algA help and not the main gdal utility doc.
2018-12-27 06:53:19 +10:00
Nyall Dawson
7977450796
[processing][ogr] Fix conversion of non-disk based layer sources
...
to GDAL commands
Fixes #19946
2018-09-28 13:36:50 +10:00
Nyall Dawson
e005d6e2b9
[processing][gdal] Strip newlines from custom proj CRS definitions
...
before passing to GDAL commands
Fixes #19855
2018-09-18 14:57:22 +10:00
Stephen Knox
53cbe26101
Fix quotes on postgis import, & fix mysql datsource formatting
2018-08-08 10:04:15 +10:00
Nyall Dawson
ed94b693e9
[processing][gdal] Fix layer paths are sometimes incorrect within command preview
...
Fixes #19451
2018-07-25 08:20:07 +10:00
Nyall Dawson
bd65fc607b
[processing][gdal] Don't double quote output paths
...
Breaks for some drivers, e.g. KML
Fixes #18264
2018-06-01 18:21:41 +10:00
Nyall Dawson
c0d9528090
Silence python warnings from 3rd party libraries on startup
2018-05-22 06:02:55 +10:00
Alexander Bruy
1783394b6b
[processing] don't use function annotations as this breaks build on
...
systems with Python < 3.3 (fix #18961 )
2018-05-16 14:43:32 +03:00
Nyall Dawson
be73c9605f
Spelling
2018-05-11 11:29:34 +10: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
49d585ef17
[processing][gdal] Move method to write input files to text file to GdalUtils
2018-03-22 06:46:39 +11: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
Denis Rouzaud
3dc3d9d1b2
unite QgsMessageLog::Level and QgsMessageBar::MessageLevel in Qgis::MessageLevel
...
make enum items lower case
remove unused QgsMessageLog::None and All
2018-02-06 08:56:40 -04:00
Alexander Bruy
0059b2b692
[processing] remove Python 2 compatibility layer
2017-11-28 12:27:45 +02:00
Nyall Dawson
cab807dc30
Merge pull request #5426 from medspx/ProcessingPortGrass72
...
[Processing] Port GRASS 7.2 algorithm provider
2017-11-09 06:42:38 +10:00
Nyall Dawson
fe0566000e
More QPair API removal
2017-11-06 07:34:01 +10:00
Nyall Dawson
dc341d2047
Add flags to QgsVectorFileWriter methods which return lists of drivers
...
Initially only flag available is whether to sort drivers by
recommended order. The recommended order puts GPKG first and
SHP second, then leaves the rest alphabetical.
This fixes a few instances in the QGIS gui where these recommended formats
are not listed first.
2017-11-06 07:22:04 +10:00
Médéric RIBREUX
d10aaf4bd4
Support multiple output file raster formats:
...
* A new createopt textbox has been added to the parameters dialog for algorithms which exports to raster files.
* A new metaopt textbox has also been added to the Algorithm parameters dialog.
* Raster file format is detected from output filename extension.
* GdalUtils has been improved to correctly detect raster formats supported for creation.
* QFileDialog for output rasters now display only file filters for supported output raster file formats.
2017-11-05 13:18:24 +01:00
Matthias Kuhn
34a9d91488
Fix broken error handling
2017-10-16 23:16:30 +02:00
Alexander Bruy
ff75873eb8
[processing] tests for OGR-based algorithms
2017-10-11 17:06:11 +03:00
Alexander Bruy
dc7b9e41bc
[processing] restore grid data metrics algorithm
2017-10-11 17:06:11 +03:00