6100 Commits

Author SHA1 Message Date
Nyall Dawson
1629a576dc Add grass raster hashes 2021-02-08 13:23:40 +10:00
Nyall Dawson
1be431d93e v.rast.stats refuses to create shapefiles in newer grass versions, so use a different format 2021-02-08 13:23:40 +10:00
Nyall Dawson
404d2bc563 Add a reference hash 2021-02-08 13:23:40 +10:00
Nyall Dawson
0573a8dba6 Fix crs of reference dataset 2021-02-08 13:23:40 +10:00
Nyall Dawson
43b5f00267 Trust GDAL gives correct results given that we are confident we are creating the correct command line string 2021-02-08 13:23:40 +10:00
Nyall Dawson
1e82802d41 Fix SHAPE_ENCODING argument should not always get escaped 2021-02-08 13:23:40 +10:00
Nyall Dawson
61c1efe954 Add reference prj file for proj 6+ 2021-02-08 13:23:40 +10:00
Nyall Dawson
d4f2b842ba Allow for multiple reference text files 2021-02-08 13:23:40 +10:00
Nyall Dawson
0db5fabd05 Fix comparison of GDAL crs arguments to expected on proj 6+ 2021-02-08 13:23:40 +10:00
Nyall Dawson
988ad72926 Quotes also need to be escaped in gdal argument values 2021-02-08 13:23:40 +10:00
Nyall Dawson
fdb53fe0bf Add a test hash 2021-02-08 13:23:40 +10:00
Nyall Dawson
735c62d93b No need to compare result from GDAL contour alg -- we already have lots of tests covering the creation
of the matching GDAL command, and we can trust that GDAL will generate contours correctly

Avoids fragility in the test when underlying GDAL contour algorithm/logic changes
2021-02-08 13:23:40 +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
3b57b53851 Fix passing geometry compare options to checkLayersEqual 2021-02-08 13:23:39 +10:00
Nyall Dawson
5ad24de4cc Temporarily disable the Find Projection test, which is very slow to run on proj 6+ builds 2021-02-08 13:23:39 +10:00
Nyall Dawson
f545d13aa6 Bit less noise in Find Projection algorithm 2021-02-08 13:23:39 +10:00
Nyall Dawson
e0c6b37615 Fix some saga tests 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
b0994a5574 Fix running tests where the same layer is used for multiple parameters 2021-02-08 13:23:39 +10:00
Nyall Dawson
4eed1d29e9 Add another reference hash 2021-02-08 13:23:39 +10:00
Nyall Dawson
589efd52f4 Fix expected test results 2021-02-08 13:23:39 +10:00
Nyall Dawson
fffeecccd6 More tolerance in Processing QGIS algorithms pt 1 test 2021-02-08 13:23:39 +10:00
Nyall Dawson
846d1fe0e6 [processing] Add option to ignore part order when comparing geometries to expected results 2021-02-08 13:23:39 +10:00
Nyall Dawson
19b4b1aa64 When loading GML layers in processing tests, FORCE detection of
SRS. Newer GDAL versions won't do this by default, but we need
to determine the actual/expected CRS for these layers in order
to compare correctly.
2021-02-08 13:23:37 +10:00
Nyall Dawson
f5d3164e2c [processing] Input parameter name for in place algorithms is not
always fixed, so ensure we correctly obtain and use the correct
input parameter name
2021-02-03 12:38:35 +10:00
Nyall Dawson
c6895d969a [processing] Correctly set IN_PLACE configuration option when running in place algorithms through locator filter 2021-02-03 12:38:35 +10:00
Nyall Dawson
46dbd8b2d6 [processing] Fix exception in algorithm locator filter if an
algorithm has no group set

The group isn't mandatory
2021-02-02 14:51:33 +10:00
Giovanni Manghi
ffff5e1899 Fix the Profile From Lines SAGA tool 2021-02-02 06:51:04 +10:00
Alessandro Pasotti
6e9389c4b2 Fix test result (because NULL is a distinct value like in PG SQL) 2021-01-26 13:17:17 +01: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
uclaros
43e673a143 Complete points to paths port 2021-01-19 05:09:48 +10:00
Nyall Dawson
814b65ba1c Cleaner approach -- create expression contexts in modeler parameter
definition dialogs using expression context and processing context
generators
2021-01-14 16:15:06 +10:00
nirvn
8a85cae92c [processing] Add 'thiessen' tag to QGIS' voronoi polygons algorithm 2021-01-13 15:42:06 +10:00
Julien Cabieces
579d55f286
[OTB] Fixes empty string parameters (#40957) 2021-01-13 11:16:18 +10:00
Nyall Dawson
3feda231b8 Update comment 2021-01-12 13:47:19 +10:00
Nyall Dawson
9cf44e4a66 Loosen grass test crs requirement to allow passing on proj < 6 2021-01-12 13:47:19 +10:00
Nyall Dawson
b295bd5803 [processing][grass] Export CRS definitions as WKT2 strings instead
of proj strings wherever possible

Because proj strings are lossy

Fixes #18596
2021-01-12 13:47:19 +10:00
Nyall Dawson
c703d81c9c [processing] Fix exception after running algorithm in modeler
Fixes #40907
2021-01-12 13:38:01 +10:00
Nyall Dawson
9ee5e5646a Update tests 2021-01-09 07:16:14 +10:00
Nyall Dawson
716e74c74a [processing] Use correct means to escape " values in GDAL commands 2021-01-09 07:16:14 +10:00
Nyall Dawson
b14dc49c85 [processing] Catch the gdal process console progress report output
and show algorithm progress bars when running GDAL algorithms
2021-01-09 07:16:14 +10:00
Nyall Dawson
54ec5acf1f [processing] GDAL algorithms can now be canceled!
Previously there was no way to terminate the GDAL process, so if you
accidently got some parameter values wrong it was very easy to end
up with a quasi-endless, non-cancelable gdal algorithm burning away cpu in the
background of a qgis session... ouch!
2021-01-09 07:16:14 +10:00
Nyall Dawson
50b5e563af [processing] Use QgsBlockingProcess instead of subprocess to run GDAL algorithms
This gives us much more flexibility when running the process, as we can
now do things like report feedback messages directly without having
to resort to potentially unsafe event loops regardless of whether the
algorithm is run in the main or a background thread.
2021-01-09 07:16:14 +10:00
Nyall Dawson
e79922b2cc [processing] Return log lines from GdalUtils.runGdal instead of storing
in a class member

The previous approach was NOT thread safe, and it's easy to avoid
2021-01-09 07:16:14 +10:00
Nyall Dawson
02f861c339 [processing] Translate some strings when running gdal algorithms 2021-01-09 07:16:14 +10:00
Julien Cabieces
5c19845d32 Keep only vector layer file path when calling an OTB algorithm 2021-01-06 07:58:17 +10:00