-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[processing][saga] Add unit test for point distances alg
- Loading branch information
1 parent
ef2fff0
commit 4212dea
Showing
4 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+2.66 KB
python/plugins/processing/tests/testdata/expected/saga/point_distances.dbf
Binary file not shown.
30 changes: 30 additions & 0 deletions
30
python/plugins/processing/tests/testdata/expected/saga/point_distances.mtab
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,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<SAGA_METADATA> | ||
<HISTORY saga-version="2.3.1"> | ||
<MODULE library="shapes_points" id="3" name="Point Distances"> | ||
<OPTION type="table_field" id="ID_POINTS" name="Identifier" index="0">fid</OPTION> | ||
<OPTION type="choice" id="FORMAT" name="Output Format" index="1">each pair with a single record</OPTION> | ||
<OPTION type="double" id="MAX_DIST" name="Maximum Distance">0.000000</OPTION> | ||
<INPUT type="shapes" id="POINTS" name="Points"> | ||
<FILE>/home/nyall/dev/QGIS/python/plugins/processing/tests/testdata/custom/points.shp</FILE> | ||
</INPUT> | ||
<OUTPUT type="table" id="DISTANCES" name="Distances">Distances [points]</OUTPUT> | ||
</MODULE> | ||
</HISTORY> | ||
<SOURCE> | ||
<FILE>/home/nyall/dev/QGIS/python/plugins/processing/tests/testdata/expected/saga/point_distances.dbf</FILE> | ||
<DATABASE> | ||
<FIELDS> | ||
<FIELD TYPE="STRING">ID_POINT</FIELD> | ||
<FIELD TYPE="STRING">ID_NEAR</FIELD> | ||
<FIELD TYPE="DOUBLE">DISTANCE</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/point_distances.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"]] |
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