8846 Commits

Author SHA1 Message Date
Harrissou Sant-anna
bb275d1188
Modeler - Show group in the algorithm dialog title 2024-08-27 18:41:52 +02:00
pathmapper
4de4f7c3bc Fix deprecation warning 2024-08-23 06:11:10 +10:00
Nyall Dawson
626df694fa Avoid multiple doc strings copies, add comments 2024-08-17 19:59:17 +10:00
Nyall Dawson
532129abf7 Improve processing monkey patching
"forward declare" functions which will be patched when the processing
plugin starts, so that these are known and accessible during the PyQGIS
doc building. Also make these forward declared versions raise
QgsNotSupportedException, so that its clear why they aren't working
when the processing plugin hasn't started

Fixes https://github.com/qgis/pyqgis-api-docs-builder/issues/38
2024-08-17 19:59:17 +10:00
Mathieu Pellerin
26b7c1ed7d [processing] Fix script editor dialog flagging opened files as immediately modified 2024-08-16 15:05:37 +07:00
Mathieu Pellerin
26308050c4 [processing] Fix script editor dialog wrongly jumping back to line 1 and setting changed to true after saving file 2024-08-16 14:53:53 +07:00
Andrea Giudiceandrea
b80bd0afa0 [processing][grass] Fix r.colors (color or rules or raster parameter)
Allow to use either the color parameter or the rules parameter or the raster parameter
2024-08-07 13:30:38 +10:00
Björn
38e955291a [metasearch] Fix load connections 2024-08-05 08:29:45 +10:00
pathmapper
0ab1197200 [metasearch] Improve empty field handling 2024-07-21 08:44:05 +10:00
pathmapper
c2660e273a Add additionally scheme / protocol where appropriate 2024-07-16 08:29:34 +10:00
pathmapper
7a8e20d572 [metasearch] Consider also name and description for link text
They should be more informative than scheme, protocol or the static string "Access Link".
2024-07-16 08:29:34 +10:00
Nyall Dawson
a42fdd8f68 Update python/plugins/grassprovider/grass_provider.py
Co-authored-by: Alexander Bruy <alexander.bruy@gmail.com>
2024-07-16 04:08:53 +10:00
Nyall Dawson
eb66f88ac9 Update python/plugins/grassprovider/grass_provider.py
Co-authored-by: Loïc Bartoletti <lbartoletti@users.noreply.github.com>
2024-07-16 04:08:53 +10:00
Nyall Dawson
c9d0d29d69 Fix comment grammar 2024-07-16 04:08:53 +10:00
Nyall Dawson
b9f6293bc7 [grass] Drop custom defaultVectorFileExtension implementation
This fixes the GRASS provider ignoring the "default output
vector layer extension" setting for processing. The override
in the grass provider is NOT required as the base class method
already applies the logic for falling back to shp when gpkg
is not available (which was added here in 2e92dabd), and
also correctly respects the default format setting.

Fixes #43988
2024-07-16 04:08:53 +10:00
Nyall Dawson
7c0c56b96b Add flag to a few more algorithms 2024-07-15 14:33:21 +10:00
Nyall Dawson
b0aab23d0f [grass] Ensure vector inputs respect layer filters
Fixes #55155
2024-07-13 05:00:14 +10:00
Nyall Dawson
495a193036 Show GRASS version info in Processing logs
Fixes #55163
2024-07-12 22:18:26 +10:00
Andrea Giudiceandrea
5f85a82caa [processing][feature] Add tests for gdal:ogrinfo and gdal:ogrinfojson 2024-07-11 08:58:22 +10:00
Andrea Giudiceandrea
3d8a7a7a80 [processing][feature] Enhance gdal:ogrinfo - Add gdal:ogrinfojson 2024-07-11 08:58:22 +10:00
uclaros
22895e6b6f Allow postgresraster layers as gdal processing tools input 2024-07-11 08:37:02 +10:00
Alexander Bruy
3ab7ace523
Merge pull request #58027 from nyalldawson/grass_inputs
Allow running processing tools on grass vector layers
2024-07-09 08:54:57 +01:00
Nyall Dawson
4c2983189f
When an OGR algorithm is run on a GRASS provider vector layer,
export the layer to an OGR compatible source first

Use the same logic we use eg for auto-exporting memory layers
so that GDAL tools "just work" with GRASS provider vector
layers
2024-07-09 09:53:52 +10:00
Nyall Dawson
ace84affb6
Don't try to translate boolean object
Fix #58025
2024-07-09 08:42:11 +10:00
Alexander Bruy
5e53e183a5 address review comments 2024-07-05 05:18:25 +10:00
Alexander Bruy
7bd8c071f3 port Basic statistics for fields algorithm to C++
Also add new optional output a table containing calculated statistics
similar to the Statistics by categories algorithm (fix #46241)
2024-07-05 05:18:25 +10:00
Alexander Bruy
f0db0f247b address review 2024-07-04 07:30:51 +10:00
Alexander Bruy
40f85dd8e7 allow user to add/remove Processing algorithms to/from Favorites 2024-07-04 07:30:51 +10:00
AlisterH
47f7b3a498 Update r.param.scale.txt
Correct stated maximum value for "size" parameter.
Don't know why it would have been 69 - maybe someone intended to make that the default value?
2024-07-02 17:21:35 +10:00
Matthias Kuhn
52f98f8c83
Merge pull request #57834 from m-kuhn/no_pyuic
[plugins] Remove dependency on pyuic
2024-06-30 08:44:08 +02:00
Nyall Dawson
7ec94dc2c3 Only run gdal_grid, gdal_rasterize tests on GDAL 3.7+
The inputs we use for these run tests have open options, and now
that we are respecting these and passing them to the GDAL command
we can't run these tests on the earlier GDAL versions which
didn't support open options.

The commands generated by the corresponding algorithms are already
well tested and still run on the earlier GDAL releases, it's just
the actual run test which will be skipped.
2024-06-27 13:07:25 +10:00
Nyall Dawson
2d27784cee Raise exceptions if open options not supported by GDAL version 2024-06-27 13:07:25 +10:00
Nyall Dawson
c0ad63cf36 Regenerate some GDAL output reference files
We now pass on the FORCE_SRS_DETECTION=YES open option which we
were previously dropping, so the results for these commands is
slightly different

Also drop test for older GEOS versions, it's covered by a test
for more recent versions and we have extensive test covering
the GDAL command line for this tool anyway.
2024-06-27 13:07:25 +10:00
Nyall Dawson
e38849d750 Fix running GDAL algorithms on cloud storage layers
Correctly generate commands when run on eg /vsis3/ layer sources,
and translate credential options to "--config KEY VALUE" arguments
for GDAL commands
2024-06-27 13:07:25 +10:00
Nyall Dawson
2ab2d34947 Correctly handle open options for raster GDAL algorithm inputs
And handoff to GDAL command when command supports them
2024-06-27 13:07:25 +10:00
Nyall Dawson
18efe655e9 Pass vector layer open options over to GDAL command
Ensures that processing tools which use vector layers with open
options work correctly, respecting the layer's open option settings
2024-06-27 13:07:25 +10:00
Nyall Dawson
36e3c43f84 Make getOgrCompatibleSource API more flexible 2024-06-27 13:07:25 +10:00
Nyall Dawson
46a4241ace minor cleanup 2024-06-27 13:07:25 +10:00
Nyall Dawson
dcacebaeaa Cleanup API for GDAL processing provider uri conversion 2024-06-27 13:07:25 +10:00
Alexander Bruy
ad126316d3 use core raster options widget in GDAL algorithms 2024-06-26 21:50:27 +10:00
Andrea Giudiceandrea
b120bad22d [db manager] Allow Rename action for rasters in GPKG with GDAL >=3.10 2024-06-25 09:48:11 +10:00
Alessandro Pasotti
4b38aad3d1
Merge pull request #57754 from agiudiceandrea/fix-57751-dbmanager-delete-raster-gpkg
[DB Manager] Fix delete raster layer in GeoPackage (Fix #57751)
2024-06-24 10:01:08 +02:00
Matthias Kuhn
fd663cc021 [plugins] Remove dependency on pyuic
Eases plugin development and deployment
2024-06-22 14:34:06 +02:00
Nyall Dawson
b1947bfa8a Fix console script editor tries to save as ".py.py" 2024-06-18 05:23:57 +10:00
Nyall Dawson
d345c68c5a Move responsibility for loading scripts to QgsCodeEditorWidget 2024-06-18 05:23:57 +10:00
Nyall Dawson
b2d0550e1e Tweak GRASS plugins metadata
- Make it clear that the old c++ plugin is deprecated
- Change links for processing grass plugin to more relevant links
- Remove outdated information from processing provider metadata
2024-06-18 05:22:16 +10:00
Nyall Dawson
5ea8a0df25 Fix tests on newer GEOS 2024-06-17 13:23:27 +10:00
Andrea Giudiceandrea
a840ebff04
[db manager] Fix delete raster layer in GeoPackage 2024-06-13 01:53:55 +02:00
Loïc Bartoletti
015e06575c [Processing] creategrid: Allow negative overlay
The creategrid algorithm had a limit of 0 to 1000000000.0.
I'm removing this limitation to go beyond this maximum limit, but above all to
allow a negative limit, which in fact allows an empty space
(the opposite of superposition).
2024-06-07 23:27:55 +02:00
Nyall Dawson
c685a9aa77 Replace processing default extension setting with string based setting
Change the setting key to force a reset for all users, and move to
a stable string based setting instead of a fragile int index key

Fixes #57676
2024-06-07 18:44:57 +10:00