diff --git a/python/plugins/processing/algs/saga/description/Identity.txt b/python/plugins/processing/algs/saga/description/Identity.txt index 1b4d0a32893..e45529a75e7 100644 --- a/python/plugins/processing/algs/saga/description/Identity.txt +++ b/python/plugins/processing/algs/saga/description/Identity.txt @@ -1,6 +1,7 @@ Identity shapes_polygons -QgsProcessingParameterFeatureSource|A|Layer A|-1|None|False -QgsProcessingParameterFeatureSource|B|Layer B|-1|None|False +QgsProcessingParameterFeatureSource|A|Layer A|2|None|False +QgsProcessingParameterFeatureSource|B|Layer B|2|None|False +QgsProcessingParameterBoolean|SPLIT|Split Parts|True QgsProcessingParameterVectorDestination|RESULT|Identity -QgsProcessingParameterBoolean|SPLIT|Split Parts|True \ No newline at end of file + diff --git a/python/plugins/processing/algs/saga/description/PolygonIdentity.txt b/python/plugins/processing/algs/saga/description/PolygonIdentity.txt deleted file mode 100644 index b99b1ba5beb..00000000000 --- a/python/plugins/processing/algs/saga/description/PolygonIdentity.txt +++ /dev/null @@ -1,6 +0,0 @@ -Identity -shapes_polygons -QgsProcessingParameterFeatureSource|A|Layer A|2|None|False -QgsProcessingParameterFeatureSource|B|Layer B|2|None|False -QgsProcessingParameterBoolean|SPLIT|Split Parts|True -QgsProcessingParameterVectorDestination|RESULT|Identity diff --git a/python/plugins/processing/tests/testdata/expected/saga/polygon_identity.dbf b/python/plugins/processing/tests/testdata/expected/saga/polygon_identity.dbf new file mode 100644 index 00000000000..7ac57145ed7 Binary files /dev/null and b/python/plugins/processing/tests/testdata/expected/saga/polygon_identity.dbf differ diff --git a/python/plugins/processing/tests/testdata/expected/saga/polygon_identity.mshp b/python/plugins/processing/tests/testdata/expected/saga/polygon_identity.mshp new file mode 100644 index 00000000000..3fcaecf78c2 --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/saga/polygon_identity.mshp @@ -0,0 +1,30 @@ + + + + + + + /tmp/processing_08636726d9f1485889c1c91897fc76ad/6a891ed08b784079a52a3a7a8e80a7b5/A.shp + + + /tmp/processing_08636726d9f1485889c1c91897fc76ad/205d599b3a134cf5b0c268e9039efbbd/B.shp + + Identity [A]-[B] + + + + + + + id_a + id_b + + + + PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",0.0],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]] + + -1 + + + + diff --git a/python/plugins/processing/tests/testdata/expected/saga/polygon_identity.prj b/python/plugins/processing/tests/testdata/expected/saga/polygon_identity.prj new file mode 100644 index 00000000000..e375a0de156 --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/saga/polygon_identity.prj @@ -0,0 +1 @@ +PROJCS["WGS 84 / Pseudo-Mercator",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],PROJECTION["Mercator_1SP"],PARAMETER["central_meridian",0],PARAMETER["scale_factor",1],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["X",EAST],AXIS["Y",NORTH],EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"],AUTHORITY["EPSG","3857"]] \ No newline at end of file diff --git a/python/plugins/processing/tests/testdata/expected/saga/polygon_identity.shp b/python/plugins/processing/tests/testdata/expected/saga/polygon_identity.shp new file mode 100644 index 00000000000..8afb5091e1b Binary files /dev/null and b/python/plugins/processing/tests/testdata/expected/saga/polygon_identity.shp differ diff --git a/python/plugins/processing/tests/testdata/expected/saga/polygon_identity.shx b/python/plugins/processing/tests/testdata/expected/saga/polygon_identity.shx new file mode 100644 index 00000000000..68e3a00c15d Binary files /dev/null and b/python/plugins/processing/tests/testdata/expected/saga/polygon_identity.shx differ diff --git a/python/plugins/processing/tests/testdata/saga_algorithm_tests.yaml b/python/plugins/processing/tests/testdata/saga_algorithm_tests.yaml index ff0929c4b8c..64609792a6b 100644 --- a/python/plugins/processing/tests/testdata/saga_algorithm_tests.yaml +++ b/python/plugins/processing/tests/testdata/saga_algorithm_tests.yaml @@ -284,4 +284,19 @@ tests: RESULT: name: expected/saga/polygon_union.shp type: vector - + + - algorithm: saga:polygonidentity + name: Polygon identity + params: + A: + name: custom/overlay1_a.geojson + type: vector + B: + name: custom/overlay1_b.geojson + type: vector + SPLIT: true + results: + RESULT: + name: expected/saga/polygon_identity.shp + type: vector +