69 Commits

Author SHA1 Message Date
Alex
ea374ff4c3 fix non-default field order in join bys 2025-06-04 14:16:59 +10:00
Nyall Dawson
31b1e197c0 More test tolerance 2025-06-03 13:42:29 +10:00
Nyall Dawson
9996e9cdfc [processing] Fix execution of nested models
Fixes #60883
2025-06-03 13:42:29 +10: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
8537bb4791 Fix test attempt 2 2025-03-18 23:43:48 +01: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
Nyall Dawson
da7461ff77 Fix some processing tests on newer library versions 2024-02-12 18:38:21 +10:00
Alexander Bruy
35d8864fec add tests 2024-01-29 17:14:11 +01:00
Alexander Bruy
e3023455ca use run() to execute nested algorithms
move step calculation to prepareAlgorithm to avoid crash
disable tests for native implementation
2023-10-09 12:14:20 +02:00
Alexander Bruy
a4e473392c concave hull tests based on geos version 2023-10-09 12:14:20 +02:00
Alexander Bruy
17426302ff address review 2023-10-09 12:14:20 +02:00
Alexander Bruy
d18190ce4f make cppcheck happy 2023-10-09 12:14:20 +02:00
Alexander Bruy
514e8b5b24 use geos to calculate concave hull on systems with geos >=3.11.0 2023-10-09 12:14:20 +02:00
Alexander Bruy
61b69179af [processing] port concave hull algorithm to C++ 2023-10-09 12:14:20 +02:00
Jean Felder
6565b0d3f9 processing: Fix some tests for GEOS 3.11 and above
This has been tested with GEOS 3.10, 3.11 and 3.12.
2023-08-10 04:56:29 +10:00
Nyall Dawson
9d1fc68c1d Get remaining processing tests working on newer systems 2022-08-10 16:33:18 +10:00
Nyall Dawson
4af0e4c1a0 Get some more processing tests working on newer GDAL/GEOS 2022-08-08 17:50:06 +10:00
Nyall Dawson
5a6b76abaf Fix difference algorithm when differencing a point results in
a null geometry

Fixes #49291
2022-07-12 11:42:10 +10:00
Andrea Giudiceandrea
2c807f918b Add tests for native:setzfromraster with offset 2022-06-18 05:44:28 +10:00
Nyall Dawson
07ee0bb7e4 Fix some tests on newer GEOS 2022-03-17 18:12:27 +10:00
webmaster
b420a23acd [processing] Fix erroneous call to secsTo when it should be msecsTo
(fixes #47727)
2022-03-11 10:27:11 +01:00
Germán Carrillo
ec23963359 Add tests for join attributes table with name conflicts (fix for #47650) 2022-03-09 11:07:01 +10:00
Clemens Raffler
baf50af3cd add more testcases with differing layer CRSs 2021-10-25 09:30:34 +10:00
Clemens Raffler
9eabef7623 add ellipsoid and crs settings in test 2021-10-25 09:30:34 +10:00
Clemens Raffler
9ef92b7d1f add testcase for centroid based distance 2021-10-25 09:30:34 +10:00
Clemens Raffler
257f45297c add python based test 2021-10-25 09:30:34 +10:00
Mathieu Pellerin
4d2c24e850 [processing] Adjust st-dbscan algorithm to new duration parameter, change default unit to hours 2021-09-06 16:57:36 +10:00
Nyall Dawson
cf40573d2c [feature][processing] Add new "Select within distance" and
"Extract within distance" algorithms

These algorithms allow users to select or extract features from one
layer which are within a certain distance of features from another
reference layer.

The distance checking is heavily optimised, using spatial indices
to restrict the number of features retrieved, and also automatically
handing the check off to the database server for postgis layers.

The distance parameter can also be data-defined.

Sponsored by QTIBIA Engineering
2021-08-06 17:37:09 +10:00
nirvn
f68ef8fb60 [feature][processing] A brand new spatiotemporal ST-DBSCAN clustering algorithm 2021-07-26 10:30:14 +10:00
Alexander Bruy
82ad2051e6 fix file permissions
remove duplicated short help file
2021-06-21 07:17:36 +03:00
Nyall Dawson
7e5b6dde2f Loosen test precision following Geographiclib area calculation switch 2021-02-27 13:15:22 +10:00
Nyall Dawson
25886c30de A bit of repairs to vector tiles algorithm test 2021-02-08 13:23:39 +10:00
Nyall Dawson
465fe14ea8 More tolerance in some tests 2021-02-08 13:23:39 +10:00
Nyall Dawson
c9ca4febfe Add secondary reference layer for tapered buffer alg 2021-02-08 13:23:39 +10:00
Nyall Dawson
b106c209a3 Fix some more processing alg tests 2021-02-08 13:23:39 +10:00
Nyall Dawson
b6ee3e66a3 [feature][processing] Add new algorithm to retain only selected fields
Allows users to select a list of fields to keep, and all other fields
will be dropped from the layer. Helps with making flexible models where
input datasets may have a range of different fields and you need to drop
all but a certain subset of these
2020-11-23 19:20:40 +10:00
Nyall Dawson
b07a58c028 [processing] Port delete fields algorithm to c++
1:1 port for speed/compile time safety, no user-facing changes

Also add tests
2020-11-23 19:20:40 +10:00
Alexander Bruy
bdce38bc0b drop useless test 2020-11-02 09:47:29 +02:00
Alexander Bruy
9414e3f54a test for DXF export algorithm 2020-11-02 09:47:29 +02:00
Even Rouault
53c5c337ec [Algorithms] JoinByNearest: accept max_distance == 0.0 (fixes #38761) 2020-09-16 06:15:11 +10:00
Mathieu Pellerin
af81515831
[processing] Add a cluster size attribute to the kmean cluster algorithm 2020-08-27 13:08:42 +07:00
nirvn
d827faa2c8 [processing] Upgrade the sample raster value algorithm to native C++ 2020-08-17 12:59:34 +07:00
Nyall Dawson
95bd7b296b [feature][processing] New algorithm "Align points to features"
This algorithm calculates the rotation required to align point features
with their nearest feature from another reference layer. A new field is
added to the output layer which is filled with the angle (in degrees,
clockwise) to the nearest reference feature.

Optionally, the output layer's symbology can be set to automatically
use the calculated rotation field to rotate marker symbols.

If desired, a maximum distance to use when aligning points can be set,
to avoid aligning isolated points to distant features.

Designed for use cases like aligning building point symbols to follow
the nearest road direction!
2020-07-26 09:56:46 +10:00
Alexander Bruy
bc8b55e1f7 add tests 2020-07-08 12:43:51 +03:00
Alessandro Pasotti
672d6ec5b2 Fix test: cast to float 2020-06-20 04:30:18 +10:00
Alessandro Pasotti
4304d8636d Fix precision in test 2020-06-20 04:30:18 +10:00
Alessandro Pasotti
50f66ba3cb Increase tolerance when comparing floats in processing tests 2020-06-20 04:30:18 +10:00
Even Rouault
93bc7c2f04 Raster rendering: enable provider-side resampling when available, and reprojection is done 2020-06-20 04:29:36 +10:00
Martin Dobias
502429a0c0 Add processing test for the vector tile writer alg 2020-05-08 12:55:08 +02:00