18994 Commits

Author SHA1 Message Date
Belgacem
eb1ff089a6 implementation of point budget in 2D 2021-02-10 13:49:28 +01:00
Nyall Dawson
b4025442e8 [processing] Automatically load the native and 3d providers
when a script calls Processing.initialize() if they are not
already loaded

This means the following ugly code can be avoided:

    Processing.initialize()
    QgsApplication.processingRegistry().addProvider(QgsNativeAlgorithms(QgsApplication.processingRegistry()))
    QgsApplication.processingRegistry().addProvider(Qgs3DAlgorithms(QgsApplication.processingRegistry()))

and instead the call to Processing.initialize() is sufficient to load
ALL providers

Fixes #41310
2021-02-09 20:13:01 +10:00
Nyall Dawson
cc5cbabaa3 Avoid API break 2021-02-09 20:12:37 +10:00
Harrissou Sant-anna
3a952a6981 Remove Add ArcGIS map service button
after it's merged with feature service

(cherry picked from commit 82797ac8d28e50a03c2190d7a8df1d740f688c5f)
2021-02-09 20:12:37 +10:00
Nyall Dawson
645397e83d Fix restoring previous GDAL alg raster creation options when running an algorithm from processing history 2021-02-09 15:14:44 +10:00
Nyall Dawson
c6613593c7 Don't loop through all selected features multiple times (once per
field) when the attribute form is opened.

This is incredibly expensive, yet only required in a very very small
corner case (field is from a joined layer without the upsert on edit
capabilities).

Refine logic to avoid the scan wherever we can.

Fixes #41366
Fixes #36863
2021-02-09 10:24:45 +10:00
Nyall Dawson
c7a25c6275 Split grass raster tests into two blocks 2021-02-09 09:31:44 +10:00
Nyall Dawson
5a46dee738
Merge pull request #41260 from qgis/test-focal
Update test base image and move CI to Github workflow
2021-02-08 18:13:55 +10:00
Nyall Dawson
2bc9f98bdd Another SAGA hash 2021-02-08 13:23:41 +10:00
Nyall Dawson
36a07f795a SAGA test hash 2021-02-08 13:23:41 +10:00
Nyall Dawson
2aacc6def0 Saga tolerance 2021-02-08 13:23:41 +10:00
Nyall Dawson
4005768f5b Check in mask files 2021-02-08 13:23:41 +10:00
Nyall Dawson
63bc64d1fa SAGA test tolerance 2021-02-08 13:23:41 +10:00
Nyall Dawson
6f8833d070 More saga test tolerance 2021-02-08 13:23:40 +10:00
Nyall Dawson
973682baa3 Use QgsRenderChecker to compare png images when comparing processing result
directories
2021-02-08 13:23:40 +10:00
Nyall Dawson
1af083415a Use a different technique to compare expected vs result directories in processing tests, which allows us to compare the
contents of files using a more flexible approach
2021-02-08 13:23:40 +10:00
Nyall Dawson
32df2d7966 SAGA silliness 2021-02-08 13:23:40 +10:00
Nyall Dawson
6c0fbe822e More tolerance in SAGA tests 2021-02-08 13:23:40 +10:00
Nyall Dawson
22fc50f6bf Disable r.rescale test -- cause intermitten segfaults in GRASS on CI (not our fault) 2021-02-08 13:23:40 +10:00
Nyall Dawson
7e691b561e Disable the i.pansharpen test -- GRASS on CI raises a python exception when running this tool (not our fault) 2021-02-08 13:23:40 +10:00
Nyall Dawson
39acbf86c7 More SAGA test nonsense 2021-02-08 13:23:40 +10:00
Nyall Dawson
bbe2ffeeef Disable some SAGA tests, make others more tolerant
Life is too short to deal with SAGA
2021-02-08 13:23:40 +10:00
Nyall Dawson
deea4fbe58 Update grass tests 2021-02-08 13:23:40 +10:00
Nyall Dawson
3f2dc1504f On newer GRASS versions i.eb.hsebal01 requires a raster layer for vapourpressureactual, not a numeric value 2021-02-08 13:23:40 +10:00
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
9ba0bd9944 Allow casting date/datetime values to string to compare to expected results 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