-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[processing][saga] Unit tests for snap points to lines/points algs
- Loading branch information
1 parent
64352fb
commit 82364e4
Showing
21 changed files
with
156 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+101 Bytes
python/plugins/processing/tests/testdata/expected/saga/snap_points_to_lines_moves.dbf
Binary file not shown.
29 changes: 29 additions & 0 deletions
29
python/plugins/processing/tests/testdata/expected/saga/snap_points_to_lines_moves.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_points" id="19" name="Snap Points to Lines"> | ||
<OPTION type="double" id="DISTANCE" name="Search Distance">0.900000</OPTION> | ||
<INPUT type="shapes" id="INPUT" name="Points"> | ||
<FILE>/tmp/processing_c9cffa8a29a44a6381b1e4648d0e014a/baab8e35e8b74d61b9e1be06b6303d5a/INPUT.shp</FILE> | ||
</INPUT> | ||
<INPUT type="shapes" id="SNAP" name="Snap Features"> | ||
<FILE>/tmp/processing_c9cffa8a29a44a6381b1e4648d0e014a/a58de6cbffc24234b5483d6a4ce9e5e7/SNAP.shp</FILE> | ||
</INPUT> | ||
<OUTPUT type="shapes" id="MOVES" name="Moves">INPUT [snap move: SNAP]</OUTPUT> | ||
</MODULE> | ||
</HISTORY> | ||
<SOURCE> | ||
<FILE></FILE> | ||
<DATABASE> | ||
<FIELDS> | ||
<FIELD TYPE="STRING">fid</FIELD> | ||
</FIELDS> | ||
</DATABASE> | ||
<PROJECTION> | ||
<OGC_WKT>GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]</OGC_WKT> | ||
<PROJ4>+proj=longlat +a=6378137.000000 +b=6356752.314245 +no_defs</PROJ4> | ||
<EPSG>-1</EPSG> | ||
</PROJECTION> | ||
</SOURCE> | ||
<DESCRIPTION></DESCRIPTION> | ||
</SAGA_METADATA> |
1 change: 1 addition & 0 deletions
1
python/plugins/processing/tests/testdata/expected/saga/snap_points_to_lines_moves.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 @@ | ||
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"]] |
Binary file added
BIN
+452 Bytes
python/plugins/processing/tests/testdata/expected/saga/snap_points_to_lines_moves.shp
Binary file not shown.
Binary file added
BIN
+132 Bytes
python/plugins/processing/tests/testdata/expected/saga/snap_points_to_lines_moves.shx
Binary file not shown.
Binary file added
BIN
+146 Bytes
python/plugins/processing/tests/testdata/expected/saga/snap_points_to_lines_result.dbf
Binary file not shown.
29 changes: 29 additions & 0 deletions
29
python/plugins/processing/tests/testdata/expected/saga/snap_points_to_lines_result.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_points" id="19" name="Snap Points to Lines"> | ||
<OPTION type="double" id="DISTANCE" name="Search Distance">0.900000</OPTION> | ||
<INPUT type="shapes" id="INPUT" name="Points"> | ||
<FILE>/tmp/processing_c9cffa8a29a44a6381b1e4648d0e014a/baab8e35e8b74d61b9e1be06b6303d5a/INPUT.shp</FILE> | ||
</INPUT> | ||
<INPUT type="shapes" id="SNAP" name="Snap Features"> | ||
<FILE>/tmp/processing_c9cffa8a29a44a6381b1e4648d0e014a/a58de6cbffc24234b5483d6a4ce9e5e7/SNAP.shp</FILE> | ||
</INPUT> | ||
<OUTPUT type="shapes" id="OUTPUT" name="Result">INPUT [snapped: SNAP]</OUTPUT> | ||
</MODULE> | ||
</HISTORY> | ||
<SOURCE> | ||
<FILE></FILE> | ||
<DATABASE> | ||
<FIELDS> | ||
<FIELD TYPE="STRING">fid</FIELD> | ||
</FIELDS> | ||
</DATABASE> | ||
<PROJECTION> | ||
<OGC_WKT>GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]</OGC_WKT> | ||
<PROJ4>+proj=longlat +a=6378137.000000 +b=6356752.314245 +no_defs</PROJ4> | ||
<EPSG>-1</EPSG> | ||
</PROJECTION> | ||
</SOURCE> | ||
<DESCRIPTION></DESCRIPTION> | ||
</SAGA_METADATA> |
1 change: 1 addition & 0 deletions
1
python/plugins/processing/tests/testdata/expected/saga/snap_points_to_lines_result.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 @@ | ||
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"]] |
Binary file added
BIN
+352 Bytes
python/plugins/processing/tests/testdata/expected/saga/snap_points_to_lines_result.shp
Binary file not shown.
Binary file added
BIN
+172 Bytes
python/plugins/processing/tests/testdata/expected/saga/snap_points_to_lines_result.shx
Binary file not shown.
Binary file added
BIN
+137 Bytes
python/plugins/processing/tests/testdata/expected/saga/snap_points_to_points_moves.dbf
Binary file not shown.
29 changes: 29 additions & 0 deletions
29
python/plugins/processing/tests/testdata/expected/saga/snap_points_to_points_moves.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_points" id="18" name="Snap Points to Points"> | ||
<OPTION type="double" id="DISTANCE" name="Search Distance">0.500000</OPTION> | ||
<INPUT type="shapes" id="INPUT" name="Points"> | ||
<FILE>/tmp/processing_c9cffa8a29a44a6381b1e4648d0e014a/cc15847f946f404fbb7fb8baafffe3c7/INPUT.shp</FILE> | ||
</INPUT> | ||
<INPUT type="shapes" id="SNAP" name="Snap Features"> | ||
<FILE>/tmp/processing_c9cffa8a29a44a6381b1e4648d0e014a/e8d243d131f0456a86228224864db4fb/SNAP.shp</FILE> | ||
</INPUT> | ||
<OUTPUT type="shapes" id="MOVES" name="Moves">INPUT [snap move: SNAP]</OUTPUT> | ||
</MODULE> | ||
</HISTORY> | ||
<SOURCE> | ||
<FILE></FILE> | ||
<DATABASE> | ||
<FIELDS> | ||
<FIELD TYPE="STRING">fid</FIELD> | ||
</FIELDS> | ||
</DATABASE> | ||
<PROJECTION> | ||
<OGC_WKT>GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]</OGC_WKT> | ||
<PROJ4>+proj=longlat +a=6378137.000000 +b=6356752.314245 +no_defs</PROJ4> | ||
<EPSG>-1</EPSG> | ||
</PROJECTION> | ||
</SOURCE> | ||
<DESCRIPTION></DESCRIPTION> | ||
</SAGA_METADATA> |
1 change: 1 addition & 0 deletions
1
python/plugins/processing/tests/testdata/expected/saga/snap_points_to_points_moves.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 @@ | ||
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"]] |
Binary file added
BIN
+804 Bytes
python/plugins/processing/tests/testdata/expected/saga/snap_points_to_points_moves.shp
Binary file not shown.
Binary file added
BIN
+164 Bytes
python/plugins/processing/tests/testdata/expected/saga/snap_points_to_points_moves.shx
Binary file not shown.
Binary file added
BIN
+146 Bytes
python/plugins/processing/tests/testdata/expected/saga/snap_points_to_points_result.dbf
Binary file not shown.
29 changes: 29 additions & 0 deletions
29
python/plugins/processing/tests/testdata/expected/saga/snap_points_to_points_result.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_points" id="18" name="Snap Points to Points"> | ||
<OPTION type="double" id="DISTANCE" name="Search Distance">0.500000</OPTION> | ||
<INPUT type="shapes" id="INPUT" name="Points"> | ||
<FILE>/tmp/processing_c9cffa8a29a44a6381b1e4648d0e014a/cc15847f946f404fbb7fb8baafffe3c7/INPUT.shp</FILE> | ||
</INPUT> | ||
<INPUT type="shapes" id="SNAP" name="Snap Features"> | ||
<FILE>/tmp/processing_c9cffa8a29a44a6381b1e4648d0e014a/e8d243d131f0456a86228224864db4fb/SNAP.shp</FILE> | ||
</INPUT> | ||
<OUTPUT type="shapes" id="OUTPUT" name="Result">INPUT [snapped: SNAP]</OUTPUT> | ||
</MODULE> | ||
</HISTORY> | ||
<SOURCE> | ||
<FILE></FILE> | ||
<DATABASE> | ||
<FIELDS> | ||
<FIELD TYPE="STRING">fid</FIELD> | ||
</FIELDS> | ||
</DATABASE> | ||
<PROJECTION> | ||
<OGC_WKT>GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]</OGC_WKT> | ||
<PROJ4>+proj=longlat +a=6378137.000000 +b=6356752.314245 +no_defs</PROJ4> | ||
<EPSG>-1</EPSG> | ||
</PROJECTION> | ||
</SOURCE> | ||
<DESCRIPTION></DESCRIPTION> | ||
</SAGA_METADATA> |
1 change: 1 addition & 0 deletions
1
python/plugins/processing/tests/testdata/expected/saga/snap_points_to_points_result.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 @@ | ||
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"]] |
Binary file added
BIN
+352 Bytes
python/plugins/processing/tests/testdata/expected/saga/snap_points_to_points_result.shp
Binary file not shown.
Binary file added
BIN
+172 Bytes
python/plugins/processing/tests/testdata/expected/saga/snap_points_to_points_result.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