mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
add more testcases with differing layer CRSs
This commit is contained in:
parent
5c4933d71f
commit
baf50af3cd
1
python/plugins/processing/tests/testdata/custom/polys_epsg31256.cpg
vendored
Normal file
1
python/plugins/processing/tests/testdata/custom/polys_epsg31256.cpg
vendored
Normal file
@ -0,0 +1 @@
|
||||
UTF-8
|
BIN
python/plugins/processing/tests/testdata/custom/polys_epsg31256.dbf
vendored
Normal file
BIN
python/plugins/processing/tests/testdata/custom/polys_epsg31256.dbf
vendored
Normal file
Binary file not shown.
1
python/plugins/processing/tests/testdata/custom/polys_epsg31256.prj
vendored
Normal file
1
python/plugins/processing/tests/testdata/custom/polys_epsg31256.prj
vendored
Normal 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]]
|
BIN
python/plugins/processing/tests/testdata/custom/polys_epsg31256.shp
vendored
Normal file
BIN
python/plugins/processing/tests/testdata/custom/polys_epsg31256.shp
vendored
Normal file
Binary file not shown.
BIN
python/plugins/processing/tests/testdata/custom/polys_epsg31256.shx
vendored
Normal file
BIN
python/plugins/processing/tests/testdata/custom/polys_epsg31256.shx
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
python/plugins/processing/tests/testdata/expected/shortest_line_point_to_line_4326_to_3857.dbf
vendored
Normal file
BIN
python/plugins/processing/tests/testdata/expected/shortest_line_point_to_line_4326_to_3857.dbf
vendored
Normal file
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]]
|
BIN
python/plugins/processing/tests/testdata/expected/shortest_line_point_to_line_4326_to_3857.shp
vendored
Normal file
BIN
python/plugins/processing/tests/testdata/expected/shortest_line_point_to_line_4326_to_3857.shp
vendored
Normal file
Binary file not shown.
BIN
python/plugins/processing/tests/testdata/expected/shortest_line_point_to_line_4326_to_3857.shx
vendored
Normal file
BIN
python/plugins/processing/tests/testdata/expected/shortest_line_point_to_line_4326_to_3857.shx
vendored
Normal file
Binary file not shown.
BIN
python/plugins/processing/tests/testdata/expected/shortest_line_point_to_polygon_4326_to_31256.dbf
vendored
Normal file
BIN
python/plugins/processing/tests/testdata/expected/shortest_line_point_to_polygon_4326_to_31256.dbf
vendored
Normal file
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]]
|
BIN
python/plugins/processing/tests/testdata/expected/shortest_line_point_to_polygon_4326_to_31256.shp
vendored
Normal file
BIN
python/plugins/processing/tests/testdata/expected/shortest_line_point_to_polygon_4326_to_31256.shp
vendored
Normal file
Binary file not shown.
BIN
python/plugins/processing/tests/testdata/expected/shortest_line_point_to_polygon_4326_to_31256.shx
vendored
Normal file
BIN
python/plugins/processing/tests/testdata/expected/shortest_line_point_to_polygon_4326_to_31256.shx
vendored
Normal file
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user