50 Commits

Author SHA1 Message Date
Alexander Bruy
4776478354 update expected raster hashes 2025-01-30 08:46:28 +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
7355c24db8 [processing] Endpoint distance threshold for network analysis
Adds an optional end point distance threshold parameter to the
network analysis tools. Previously (and still, by default) endpoints
will ALWAYS be snapped to the nearest point in the network layer,
regardless of how far away from the network they actually are. This
can result in meaningless results, as the tools will happily snap
points to a road hundreds of kilometers away :)

Now, there's an optional end point distance threshold parameter
for these tools. The behaviour of the threshold depends on the
algorithm:

- For the “Service area (from layer)” tool an optional new output
was added for “non routable features”. This output will contain
any features which were deemed too far from the network. All
other features which are within tolerance distance to the
network will be stored in the standard output from the tool.
- For the “Service area (from point)” tool an error will be raised
if the point is too far from the network
- For the “Shortest path (point to point)” tool an error will
be raised if either the source or destination points are too far
from the network.
- For the “Shortest path (layer to point)” and “Shortest path (point
to layer)” tools:
  - An error will be raised if the **point** is too far from the network.
  - A new optional output was added for “non routable features”. This
    output will contain any features which were deemed too far from the
    network. All other features which are within tolerance distance to
    the network will be stored in the standard output from the tool.

Sponsored by City of Canning
2024-04-20 08:50:00 +10:00
Nyall Dawson
d2e3534dbd [processing] Use correct ellipsoid for network analysis tools
Use the processing context's ellipsoid instead of a hardcoded
WGS84 ellipsoid for distance calculations during network
analysis, so that the lengths used will exactly match other
measurement tools used on the same features in the same
project.
2024-03-19 13:44:02 +10:00
Alexander Bruy
35d8864fec add tests 2024-01-29 17:14:11 +01:00
Alexander Bruy
3c1f510115 add modeler support and deprecate Python implementation 2023-09-25 14:14:42 +03:00
Nyall Dawson
6e6759f482 Fix some more processing tests on newer libraries 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
07ee0bb7e4 Fix some tests on newer GEOS 2022-03-17 18:12:27 +10:00
nirvn
2918c1a2c7 Skip gml_id to work around gdal >= 3.4 changing default GML format 2022-01-30 13:48:04 +07:00
nirvn
e722475a48 [processing] Add missing {string,integer,double} array types in the field mapping widget 2022-01-30 13:48:04 +07:00
nirvn
75c8eb7798 Add T test 2021-08-31 14:31:12 +07: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
Alessandro Pasotti
9d18fe14f7 Fix basicstatisticsforfields tests 2021-01-26 09:58:53 +01:00
Nyall Dawson
10789b12fc Fix comparison sort order for points to path test 2021-01-20 09:08:35 +10:00
uclaros
9a2e9001a2 Fix failing test
Output feature order cannot be made backwards compatible so we're forced to modify the test to pass.
2021-01-19 05:09:48 +10:00
Nyall Dawson
ab6e615c3e Update test 2020-10-15 12:40:30 +10:00
MrChebur
f5e1abfe0f
Update qgis_algorithm_tests2.yaml 2020-08-16 16:24:28 +05:00
vcloarec
a4c8f33e09 fix processing test and remove invisible char 2020-08-10 08:28:24 +10:00
Alexander Bruy
7d58502b3b
Merge pull request #37097 from alexbruy/processing-tests
reduce precision when checking service area test results
2020-06-10 17:09:04 +03:00
Alexander Bruy
de6ec479f0 reduce precision when checking service area test results 2020-06-10 14:44:41 +03:00
Alexander Bruy
18195e2ad0 fix saving attributes in the service area algorithm 2020-06-10 07:44:52 +03:00
Alexander Bruy
072c76747c fix calculating raster size in the TIN and IDW algorithms to maintain
accurate pixel size (fix #31970)
2020-05-29 11:26:22 +03:00
Alexander Bruy
3a51f93498 fix tests 2020-05-12 20:32:15 +03:00
Alexander Bruy
23ee945b0a update tests and cleanup help file 2020-05-12 13:48:07 +03:00
Alexander Bruy
5d7871fa0c fix tests 2020-04-30 18:52:35 +03:00
Alexander Bruy
9a53837946 add new parameter and hide old one 2020-04-30 07:46:05 +03:00
gacarrillor
f6ee3e81ce Add 5 tests to remove NULL geometries alg with the remove EMPTY geometries option 2020-03-15 17:37:51 +10:00
root676
aa2b38f9ca remove hash based python test entry 2020-01-10 13:32:42 +13:00
root676
ce342f7ac4 [feature][processing] Add Line denisty algorithm 2020-01-10 13:32:42 +13:00
Alexander Bruy
4622661f59 [processing] port truncate table to C++ 2019-12-09 13:28:32 +02:00
Alexander Bruy
2ff85f92df [processing] port pole of inaccessibility to C++ 2019-12-09 13:28:32 +02:00
Alexander Bruy
eec0ac07f8 [processing] port geometry by expression to C++ 2019-12-09 13:28:32 +02:00
Alexander Bruy
c2d1649e60 [processing] port extract specific vertices algorithm to C++ 2019-12-09 13:28:32 +02:00
Alexander Bruy
5324d7f98d [processing] port points layer from table to C++ 2019-11-26 03:56:24 +10:00
Alexander Bruy
9289d53a6c [processing] port orthogonalize algorithm to C++ 2019-11-26 03:56:24 +10:00
Alexander Bruy
aed17baed3 [processing] port spatial index algorithm to C++ 2019-11-26 03:56:24 +10:00
Alexander Bruy
7033c31063 [processing] port create attribute index algorithm to C++ 2019-11-26 03:56:24 +10:00
root676
d159014179 fix bugs in fuzzify() methods and create processing tests 2019-11-11 05:26:02 +10:00
Alexander Bruy
020980d3b1 address comments 2019-11-08 11:04:05 +02:00
Alexander Bruy
6b3af0f8d1 update tests for service area algorithms 2019-11-06 08:28:51 +02:00
Nyall Dawson
64b52bf31b Fix handling of interpolation layers with differing input coordinate reference systems
Fixes #27048
2019-11-05 16:57:33 +10:00
Clemens Raffler
9e9ade3903 [processing] Port of Create Grid algorithm to C++
MUCH faster grid creation vs the Python implementation
2019-10-10 09:33:59 +10:00
Nyall Dawson
023ba1968e [processing] Drop precision of attribute check for create grid test results 2019-10-10 08:55:20 +10:00
Nyall Dawson
4ff8429f7a [processing] Port "Points along geometry" to QgsFeatureBasedAlgorithm
(and c++), allow distance/start/end offset to be dynamic, avoid
algorithm "hangs" when inappropriately small (or 0) distances
are used
2019-06-12 10:08:51 +07:00
Nyall Dawson
289e72dc07 Adjust precision of some processing tests to allow them to pass under proj 6 2019-05-21 19:14:55 +10:00
Nyall Dawson
69c89151ef Add extra raster hashes 2019-05-09 14:04:30 +10:00
Nyall Dawson
6ec58f90c8 Spelling, formatting 2019-05-09 14:04:30 +10:00
Nyall Dawson
e2bd17f3c9 Split processing test files into multiple batches
There's two motivations for this:
- the existing one was getting massive and took ages to run, which was
a pain when developing. Smaller batches allow just a subset of test to
be run which is much faster.
- There's a random segfault on test exit which occurs on Travis. Rather
then disabling these absolutely critical tests altogether, I'm using
this as a method of bisecting exactly which alg is causing this.
2019-05-09 14:04:30 +10:00