Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[processing][saga] Remove duplicate polygon difference alg, add test
- Loading branch information
1 parent
bdac9f1
commit f75d31c
Showing
8 changed files
with
50 additions
and
9 deletions.
There are no files selected for viewing
7 changes: 4 additions & 3 deletions
7
python/plugins/processing/algs/saga/description/Difference.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
Difference | ||
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|Difference | ||
QgsProcessingParameterBoolean|SPLIT|Split Parts|True | ||
|
6 changes: 0 additions & 6 deletions
6
python/plugins/processing/algs/saga/description/PolygonDifference.txt
This file was deleted.
Oops, something went wrong.
Binary file added
BIN
+83 Bytes
python/plugins/processing/tests/testdata/expected/saga/polygon_difference.dbf
Binary file not shown.
29 changes: 29 additions & 0 deletions
29
python/plugins/processing/tests/testdata/expected/saga/polygon_difference.mshp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<SAGA_METADATA> | ||
<HISTORY saga-version="2.3.1"> | ||
<MODULE library="shapes_polygons" id="15" name="Difference"> | ||
<OPTION type="boolean" id="SPLIT" name="Split Parts">TRUE</OPTION> | ||
<INPUT type="shapes" id="A" name="Layer A"> | ||
<FILE>/tmp/processing_e049cb7c46df450286b636d45e999b58/a73e875cc8f84acc9cd2f1d9229d6e48/A.shp</FILE> | ||
</INPUT> | ||
<INPUT type="shapes" id="B" name="Layer B"> | ||
<FILE>/tmp/processing_e049cb7c46df450286b636d45e999b58/b10dbbabca9c46aca3e7acaa93a0bf24/B.shp</FILE> | ||
</INPUT> | ||
<OUTPUT type="shapes" id="RESULT" name="Difference">Difference [A]-[B]</OUTPUT> | ||
</MODULE> | ||
</HISTORY> | ||
<SOURCE> | ||
<FILE></FILE> | ||
<DATABASE> | ||
<FIELDS> | ||
<FIELD TYPE="STRING">id_a</FIELD> | ||
</FIELDS> | ||
</DATABASE> | ||
<PROJECTION> | ||
<OGC_WKT>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]]</OGC_WKT> | ||
<PROJ4></PROJ4> | ||
<EPSG>-1</EPSG> | ||
</PROJECTION> | ||
</SOURCE> | ||
<DESCRIPTION></DESCRIPTION> | ||
</SAGA_METADATA> |
1 change: 1 addition & 0 deletions
1
python/plugins/processing/tests/testdata/expected/saga/polygon_difference.prj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"]] |
Binary file added
BIN
+948 Bytes
python/plugins/processing/tests/testdata/expected/saga/polygon_difference.shp
Binary file not shown.
Binary file added
BIN
+148 Bytes
python/plugins/processing/tests/testdata/expected/saga/polygon_difference.shx
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters