Skip to content
Permalink
Browse files
add more testcases with differing layer CRSs
  • Loading branch information
root676 authored and nyalldawson committed Oct 24, 2021
1 parent 5c4933d commit baf50af3cdcb2ba0dbcf52492f9072c53c9d9b4f
Showing with 40 additions and 6 deletions.
  1. +1 −0 python/plugins/processing/tests/testdata/custom/polys_epsg31256.cpg
  2. BIN python/plugins/processing/tests/testdata/custom/polys_epsg31256.dbf
  3. +1 −0 python/plugins/processing/tests/testdata/custom/polys_epsg31256.prj
  4. BIN python/plugins/processing/tests/testdata/custom/polys_epsg31256.shp
  5. BIN python/plugins/processing/tests/testdata/custom/polys_epsg31256.shx
  6. BIN ...expected/{shortest_line_point_to_lineCentroid.dbf → shortest_line_point_to_lineCentroid_3857.dbf}
  7. 0 ...estdata/expected/{shortest_line_point_to_line.prj → shortest_line_point_to_lineCentroid_3857.prj}
  8. BIN ...expected/{shortest_line_point_to_lineCentroid.shp → shortest_line_point_to_lineCentroid_3857.shp}
  9. BIN ...expected/{shortest_line_point_to_lineCentroid.shx → shortest_line_point_to_lineCentroid_3857.shx}
  10. BIN .../tests/testdata/expected/{shortest_line_point_to_line.dbf → shortest_line_point_to_line_3857.dbf}
  11. 0 ...estdata/expected/{shortest_line_point_to_lineCentroid.prj → shortest_line_point_to_line_3857.prj}
  12. BIN .../tests/testdata/expected/{shortest_line_point_to_line.shp → shortest_line_point_to_line_3857.shp}
  13. BIN .../tests/testdata/expected/{shortest_line_point_to_line.shx → shortest_line_point_to_line_3857.shx}
  14. BIN python/plugins/processing/tests/testdata/expected/shortest_line_point_to_line_4326_to_3857.dbf
  15. +1 −0 python/plugins/processing/tests/testdata/expected/shortest_line_point_to_line_4326_to_3857.prj
  16. BIN python/plugins/processing/tests/testdata/expected/shortest_line_point_to_line_4326_to_3857.shp
  17. BIN python/plugins/processing/tests/testdata/expected/shortest_line_point_to_line_4326_to_3857.shx
  18. BIN python/plugins/processing/tests/testdata/expected/shortest_line_point_to_polygon_4326_to_31256.dbf
  19. +1 −0 python/plugins/processing/tests/testdata/expected/shortest_line_point_to_polygon_4326_to_31256.prj
  20. BIN python/plugins/processing/tests/testdata/expected/shortest_line_point_to_polygon_4326_to_31256.shp
  21. BIN python/plugins/processing/tests/testdata/expected/shortest_line_point_to_polygon_4326_to_31256.shx
  22. +36 −6 python/plugins/processing/tests/testdata/qgis_algorithm_tests4.yaml
@@ -0,0 +1 @@
UTF-8
Binary file not shown.
@@ -0,0 +1 @@
PROJCS["MGI_Austria_GK_East",GEOGCS["GCS_MGI",DATUM["D_MGI",SPHEROID["Bessel_1841",6377397.155,299.1528128]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",-5000000.0],PARAMETER["Central_Meridian",16.3333333333333],PARAMETER["Scale_Factor",1.0],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]
Binary file not shown.
Binary file not shown.
@@ -2786,8 +2786,7 @@ tests:
type: vector

- algorithm: native:shortestline
name: Test (native:shortestline)
ellipsoid: EPSG:7030
name: Test native:shortestline using centroid destination and matching CRSs
project_crs: EPSG:3857
params:
DESTINATION:
@@ -2800,12 +2799,11 @@ tests:
type: vector
results:
OUTPUT:
name: expected/shortest_line_point_to_lineCentroid.shp
name: expected/shortest_line_point_to_lineCentroid_3857.shp
type: vector

- algorithm: native:shortestline
name: Test (native:shortestline)
ellipsoid: EPSG:7030
name: Test native:shortestline using nearest point on line geometry destination and matching CRSs
project_crs: EPSG:3857
params:
DESTINATION:
@@ -2818,7 +2816,39 @@ tests:
type: vector
results:
OUTPUT:
name: expected/shortest_line_point_to_line.shp
name: expected/shortest_line_point_to_line_3857.shp
type: vector

- algorithm: native:shortestline
name: Test native:shortestline using nearest point on polygon geometry destination and differing CRSs
params:
DESTINATION:
name: custom/polys_epsg31256.shp
type: vector
METHOD: '0'
NEIGHBORS: 1
SOURCE:
name: custom/points.shp
type: vector
results:
OUTPUT:
name: expected/shortest_line_point_to_polygon_4326_to_31256.shp
type: vector

- algorithm: native:shortestline
name: Test native:shortestline using nearest point on line geometry destination and differing CRSs
params:
DESTINATION:
name: custom/snap_lines_3857.shp
type: vector
METHOD: '0'
NEIGHBORS: 1
SOURCE:
name: custom/points.shp
type: vector
results:
OUTPUT:
name: expected/shortest_line_point_to_line_4326_to_3857.shp
type: vector

# See ../README.md for a description of the file format

0 comments on commit baf50af

Please sign in to comment.