add more testcases with differing layer CRSs

This commit is contained in:
Clemens Raffler 2021-10-24 15:23:29 +02:00 committed by Nyall Dawson
parent 5c4933d71f
commit baf50af3cd
22 changed files with 40 additions and 6 deletions

View File

@ -0,0 +1 @@
UTF-8

Binary file not shown.

View File

@ -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.

View File

@ -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]]

View File

@ -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]]

View File

@ -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