1442 Commits

Author SHA1 Message Date
Nyall Dawson
9996e9cdfc [processing] Fix execution of nested models
Fixes #60883
2025-06-03 13:42:29 +10:00
Nyall Dawson
8ea8798c52 Add "concave hull by feature" algorithm
The existing concave hull algorithm is quite restrictive as it
forces operation on an entire layer, which makes it useless eg
to create concave hulls from service area outputs.

Rename the existing one to "concave hull (by layer)", and make
sure all the documentation explains this so its more predictable
for users.
2025-06-02 07:17:39 +10:00
Nyall Dawson
e7e1311472 [processing] Allow dynamic travel cost for service area from layer alg
It doesn't make sense to force a single cost for all input points, so
make this parameter dynamic so that the cost can be eg taken from
an input layer field

Fixes #62004
2025-05-30 14:17:49 +10:00
Nyall Dawson
4cf15e496c [processing] Allow creating tests with dynamic expression params 2025-05-30 14:17:49 +10:00
Even Rouault
635acf7c93 Remove GdalUtils.ogrOutputLayerName() 2025-05-28 11:32:30 +10:00
Nyall Dawson
db52dfee73 Update python/plugins/processing/tests/AlgorithmsTestBase.py
Co-authored-by: Harrissou Sant-anna <delazj@gmail.com>
2025-05-17 11:15:23 +10:00
Nyall Dawson
e5660d32f0 Update list 2025-05-17 11:15:23 +10:00
Nyall Dawson
9e2c6962ad Add conformance test to ensure algorithms have tags 2025-05-17 11:15:23 +10:00
Nyall Dawson
c1f022a16d Add extra conformance test to ensure short description does NOT start with "this algorithm" 2025-05-17 11:15:23 +10:00
Alexander Bruy
43e8499071 port Find projection algorithm to C++ 2025-05-16 12:31:46 +10:00
Nyall Dawson
d309cf21a4
No HTML in short descriptions 2025-05-15 13:09:55 +10:00
Nyall Dawson
158b4a6b0d
Add conformance tests for algorithm descriptions 2025-05-15 13:08:36 +10:00
Nyall Dawson
fa80bcfd5d [processing] Port SAGA "Fill Sinks Wang & Liu" to native tool
Based on tickets/stackexchange posts/mailing list activity, this
seems to be a highly in demand tool which is fragile and error
prone when run via the SAGA Processing Plugin.

Port to a native tool to avoid this situation, and give a nice
optimised out-of-the-box tool.

Note that this is functionally a 1:1 clone of the SAGA tool. I've
verified that the outputs match SAGAs outputs, but any bugs
present in the SAGA implementation will also be present here.
2025-05-07 13:35:28 +10:00
Alexander Bruy
4c1d27422b port Convert geometry type algorithm to C++ 2025-05-06 07:48:08 +10:00
Alexander Bruy
f3a0016f8e update expected file 2025-04-30 06:57:21 +10:00
Alexander Bruy
a0bde0b7a8 port Climb algorithm to C++ 2025-04-30 06:57:21 +10:00
Alexander Bruy
f186288b41 fix TIN and IDW interpolation algorithms and tests 2025-04-23 07:39:24 +10:00
Alexander Bruy
f2b9f60a44 port Check Validity algorithm to C++ 2025-04-21 12:15:13 +01:00
Alexander Bruy
c0491d6997
Merge pull request #61321 from alexbruy/harmonize-create-options-naming
Harmonize terminology related to create options
2025-04-15 08:06:44 +01:00
Alexander Bruy
5bde6fec42 harmonize parameter name in Processing algorithms 2025-04-12 11:00:42 +01:00
Alexander Bruy
0cbfa928c6 more complete test for merge vector layers algorithm for the case when
fields have different length and precision (follow-up #60842)
2025-04-08 09:20:39 +10:00
Valentin Buira
16757ebd40 Remove superfluous metadata from shapefiles 2025-03-26 21:56:06 +01:00
Valentin Buira
8537bb4791 Fix test attempt 2 2025-03-18 23:43:48 +01:00
Valentin Buira
a9ffc0a455 Merge branch 'master' into fix-mergevectorlayer-field-length 2025-03-18 21:54:33 +01:00
Alexander Bruy
5577990fdc port Export geometry attributes algorithm to C++ 2025-03-13 07:41:31 +00:00
Jean Felder
5ca6c217f3 processing: Fix voronoipolygons unit test for GEOS 3.12.1 2025-03-13 07:21:24 +10:00
Valentin Buira
c3b65efa20 attempt to fix test 2025-03-12 00:23:00 +01:00
Valentin Buira
fa8bf9e6ba Add test for merging layers with different field length/precision 2025-03-07 23:54:41 +01:00
Benjamin Jakimow benjamin.jakimow@geo.hu-berlin.de
8054fd816f added test tp check truncation of WIDTh and HEIGHT float values
relates to #60533
2025-02-12 11:32:35 +01:00
Benjamin Jakimow benjamin.jakimow@geo.hu-berlin.de
d570f81db5 ensures that "gda:rasterize" uses integer numbers as input to -ts parameter
fixes #60524
2025-02-12 11:32:35 +01:00
Nyall Dawson
fa1bae1a4f Adapt tests for proj 8.2 results 2025-02-05 06:15:05 +10:00
Alexander Bruy
4776478354 update expected raster hashes 2025-01-30 08:46:28 +10:00
Nyall Dawson
3d2f37a756 Fix test which was never working, but just skipped on CI because too old GDAL 2024-12-14 10:22:12 +10:00
Nyall Dawson
05c269d61d Fix test on newer GEOS versions 2024-12-14 10:22:12 +10:00
Nyall Dawson
27253e1c21 Fix test on newer python 2024-12-13 13:54:19 +10:00
Jan Caha
f593da593a
New Algorithm - Mesh Surface to Polygon (#58941)
* new algorithm

* update feedback

* allow cancel during mesh face processing

* allow cancel during mesh faces processing

* fix file names

* fix the speed of the algorithm

* drop not needed imports

* fix issues

* more readable

* add mesh layer

* test case

* simplify to avoid warning

* fix issue

* fix data call

* fix call

* fix expected data

* handle meshes with holes

* add test case

* merge from master

* Update src/analysis/processing/qgsalgorithmmeshsurfacetopolygon.cpp

fix translation

Co-authored-by: Stefanos Natsis <uclaros@gmail.com>

* Update src/analysis/processing/qgsalgorithmmeshsurfacetopolygon.cpp

fix translation

Co-authored-by: Stefanos Natsis <uclaros@gmail.com>

* Update src/analysis/processing/qgsalgorithmmeshsurfacetopolygon.cpp

fix translation

Co-authored-by: Stefanos Natsis <uclaros@gmail.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix translation

* typo

* clone

* delete to avoid memory leak

---------

Co-authored-by: Stefanos Natsis <uclaros@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-12-11 16:04:48 +02:00
Denis Rouzaud
0f032e5f2d run pre-commit on all files 2024-11-29 15:38:02 +01:00
Nyall Dawson
1a4bd44937 Rename field to extremum_type 2024-11-11 13:01:42 +10:00
Nyall Dawson
2890df089d [feature] Add raster zonal min/max algorithm
This algorithm extracts point features corresponding to the minimum
and maximum pixel values contained within polygon zones.

The output will contain one point feature for the minimum and one
for the maximum raster value for every individual zonal feature
from a polygon layer.
2024-11-11 13:01:42 +10:00
Nyall Dawson
a7bd4f3bf2 [processing] Add algorithm to extract min/max pixel from raster
This algorithm extracts extrema (minimum and maximum) values
from a given band of the raster layer.

The output is a vector layer containing point features for
the selected extrema, at the center of the associated pixel.

If multiple pixels in the raster share the minimum or maximum
value, then only one of these pixels will be included in the output.

The algorithm uses raster iterator to remain efficient on huge
rasters, and does not require reading the entire raster to
memory
2024-11-07 10:13:55 +11:00
mazano
6ca60b7502
[ogr2ogr] Fix promote to multipart logic and add makevalid option (#58440) 2024-10-18 07:45:43 +10:00
Andrea Giudiceandrea
5f85a82caa [processing][feature] Add tests for gdal:ogrinfo and gdal:ogrinfojson 2024-07-11 08:58:22 +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
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