622 Commits

Author SHA1 Message Date
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
Alexander Bruy
2a3e9cb411 add missed outputs to algorithms 2019-11-05 12:44:43 +10:00
Giovanni Manghi
463d3680d5 better strings 2019-11-05 12:44:43 +10:00
Giovanni Manghi
4260ed2f03 split the tool 2019-11-05 12:44:43 +10:00
Giovanni Manghi
7aa0a4f3e5 add 'burn' parameter 2019-11-05 12:44:43 +10:00
Giovanni Manghi
75a1ad1e7b implement few suggested changes 2019-11-05 12:44:43 +10:00
Giovanni Manghi
b31c4124f4 revive the GDAL 'rasterize over' tool that was available in the old ltr and for some reason not activated/added in QGIS 3 2019-11-05 12:44:43 +10:00
Alexander Bruy
3701d360a1 remove unused variable
fix tests
2019-11-03 21:25:52 +10:00
Giovanni Manghi
74d6e099e6 fix gdal calc compression options 2019-11-03 21:25:52 +10:00
Alexandre Neto
28b24bda51 Better approach for preferredFormat 2019-10-07 09:07:45 +10:00
Alexandre Neto
6918f230b8 Checks is gpkg is available for writing 2019-10-07 09:07:45 +10:00
Alexandre Neto
9f3ed88145 Makes GPKG prefered input format for OGR algs #Fixes 29097 2019-10-07 09:07:45 +10:00
Giovanni Manghi
c7e4130140 make the A_SRS parameter optional 2019-10-02 08:11:15 +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
Alexander Bruy
3f54e1db9a use doublequotes for indentifiers as required by GDAL's RFC52 2019-09-12 12:09:29 +03:00
Alexander Bruy
e1c97dc5ba [processing] quote field names in GDAL commands (fix #30878) 2019-09-12 10:52:31 +03:00
Geoff Kimbell
283c8b813a [processing] fix gdalwarp handling of custom projection for target extent
Fixes #31276
2019-09-07 08:24:14 +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
9ed4d08d5b [processing] ignore hidden parameters when generating GDAL command (fix #30669) 2019-07-15 07:52:36 +10: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