Skip to content

Commit

Permalink
add more testcases with differing layer CRSs
Browse files Browse the repository at this point in the history
  • Loading branch information
root676 authored and nyalldawson committed Oct 24, 2021
1 parent 5c4933d commit baf50af
Show file tree
Hide file tree
Showing 22 changed files with 40 additions and 6 deletions.
@@ -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.
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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.