3217 Commits

Author SHA1 Message Date
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
Juergen E. Fischer
2e7bebcf20 add code_layout test to verify that UIs either have a non-default window title or are not marked for translation 2020-04-24 16:30:45 +02: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
Nyall Dawson
0396162d1f [processing] De-emphasise SAGA results when searching in toolbox
This change "dims" the results from the SAGA provider when a search
is made in the toolbox, to visually push users towards picking alternative
algorithms instead.

The Processing implementation of SAGA algorithms are a constant source
of critical bugs for users, causing incorrect analysis results. There's
zero community interest in actively maintaining this provider, so we
need to take steps to push users to stop picking these algorithms
wherever alternative (QGIS/GRASS/GDAL based) equivalents exist.

And for 4.0, seriously re-consider dropping this provider from the
out of the box install. We are causing more harm then good by offering
it to users.
2020-04-13 17:12:14 +10:00
Alexander Bruy
6c2937fd86 [processing] set correct filter for v.in.lidar (fix #35700) 2020-04-11 05:22: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
Alessandro Pasotti
a21800cf3e Adress PR review + model test + QgsExpression -> QString 2020-04-03 21:21:14 +10:00
Alessandro Pasotti
4a33c75bc9 Mapping panel: fix initial loading of source fields 2020-04-03 21:21:14 +10:00
Alessandro Pasotti
e1044d87f1 Use QgsFieldMappingWigdet in processing UI 2020-04-03 21:21:14 +10:00
Nyall Dawson
c98cd8d1a8 Partial port of destination wrappers to c++ API 2020-04-02 02:29:54 +10:00
Nyall Dawson
7a69bf39d2 Another fix for OTB widget 2020-04-01 05:27:55 +10:00
Nyall Dawson
bc659fe1fa Adapt OTB widget use of non-stable API
(this is a prime example of why the sooner we can drop all this python, the better...)
2020-04-01 05:27:55 +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
Cédric Traizet
fb419b638d OTB plugin modification for OTB 7.1 2020-03-25 08:22:46 +10:00
Matthias Kuhn
342f1e3396
Merge pull request #31387 from gacarrillor/colour_refactor_fields
Show 'template layer' constraints info in the Refactor fields algorithm's UI
2020-03-18 07:10:06 +01: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
184bb0ebb2 Port last postgis alg to connections API 2020-03-17 15:10:53 +10:00
Nyall Dawson
cd2caf84f7 Raise an exception when connection is not specified 2020-03-17 15:10:53 +10:00
Nyall Dawson
3c3efe5f7a Remove unused spatialite python connection class 2020-03-17 15:10:53 +10:00
Nyall Dawson
ba010f8803 [processing] Use core connections API for Spatialite algorithms instead
of Python reimplementation
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
fe4b2c89f9 Drop PostgisTableSelector 2020-03-16 19:42:02 +10:00
Nyall Dawson
edd0635fe3 [processing] Move responsiblity for creation of file filter strings from python to c++ 2020-03-16 10:08:46 +10:00
gacarrillor
766b1e43b4 Optionally, remove empty geoms in RemoveNullGeometries algorithm 2020-03-15 17:37:51 +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
Nyall Dawson
4e1e68461d Snap Geometries algorithm is capable of running in-place mode 2020-03-06 18:24:01 +10:00
Juergen E. Fischer
edee4a3d10 spelling fixes (closes #32408) 2020-02-28 21:04:02 +01:00
Håvard Tveite
833202f32c
Update the short help description of the Random points along line algorithm
Fixes #33160
2020-02-28 10:23:53 +10:00
gacarrillor
d016d46c49 Improve readability in refactor fields UI 2020-02-24 06:20:25 -05:00
gacarrillor
2007370f61 Ensure backwards compatibility with calls not passing 'constraints' key
e.g., processing.execAlgorithmDialog(..., 'FIELDS_MAPPING':[{'expression': 't_id', 'length': -1, 'name': 't_id', 'precision': 0, 'type': 4}], ...)
2020-02-22 23:31:55 -05:00
gacarrillor
016a813afe Refactor fields UI: Add 'template' to label to link that layer to new column 2020-02-22 18:05:23 -05:00
gacarrillor
b05437c833 'Template properties' column for Refactor Fields algorithm
as a hint on template/target layer constraints.
A row of a template layer field with constraints is coloured and a tooltip shows the constraints in the corresponding 'Template properties' cell.
2020-02-22 17:21:13 -05:00
gacarrillor
09fc2c3406 Highlight NOT NULL target fields in the Refactor fields algorithm's UI:
+ By adding a new 'NOT NULL' column in the mapping widget, and
+ By adding an orange color (same as used in attribute form warnings) to the whole row.

New paragraph added to help panel to let users know why some rows are coloured.
2020-02-21 16:51:42 -05:00
Harrissou Sant-anna
eb55d7555e Fix geometry type for "Convert geometry type" algorithm 2020-02-20 08:46:32 +10:00
Nyall Dawson
692a14090b [needs-docs] Rename "Define layer projection" to "Define Shapefile projection"
This algorithm ONLY works on shapefile inputs, so make that clear in the algorithm's
display name and helper strings
2020-02-05 04:56:29 +10:00
Nyall Dawson
dae36b343e Remove qpj files when defining shp projection from processing and Proj >= build
is present

These files aren't/shouldn't be used under proj 6 builds
2020-02-05 04:56:29 +10:00
Nyall Dawson
f41dd11e92 [processing] Define Layer Projection tool should write .prj files
using WKT1 ESRI format, not GDAL

Fixes #34007
2020-02-05 04:56:29 +10:00
Andrea Giudiceandrea
02a6fd40cd Fix "Random points along line" alg
Fixes "Random points along line" (qgis:randompointsalongline) algorithm.
See https://github.com/qgis/QGIS/issues/33156#issuecomment-581395400
2020-02-04 08:13:03 +10:00
Andrea Giudiceandrea
e82ba52584 Fix "Random points along line" alg
Fixes "Random points along line" (qgis:randompointsalongline) algorithm
Fixes #33156
2020-02-04 08:13:03 +10:00
PedroVenancio
68cbc5b027 Add new -e -n flags
New features in GRASS 7.6: Add -n flag to create aspect as degrees clockwise from North (azimuth), with flat = -9999 (like gdaldem); new -e flag to compute values at edges (like gdaldem -compute_edges).
2020-01-30 08:47:45 +10:00
Harrissou Sant-anna
b0bffba9a1 Add short help to gdal's build virtual vector alg 2020-01-29 11:42:06 +10:00
Harrissou Sant-anna
adf63d6a90 Remove QGIS "build virtual vector" alg help 2020-01-29 11:42:06 +10:00
Andrea Giudiceandrea
41c847136e Remove qgis:pointsalonglines python alg help
after "Points along geometry" algorithm port to C++ since 3.8 qgis\QGIS@f30fcca5ece7019d83d2b385f954a0335c84e7c6 qgis\QGIS#30175
2020-01-28 05:10:22 +10:00
Andrea Giudiceandrea
2c84b43c18 Remove qgis:creategrid python alg help
after "Create grid" algorithm port to C++ qgis/QGIS@9e9ade3903
2020-01-27 16:25:17 +10:00