Skip to content

Commit b935555

Browse files
committedNov 6, 2018
Added tests for gdal extractprojection
1 parent 566d572 commit b935555

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed
 
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
0.00010000
2+
0.00000000
3+
0.00000000
4+
-0.00010000
5+
18.66634794
6+
45.81165144

‎python/plugins/processing/tests/testdata/gdal_algorithm_tests.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,34 @@ tests:
122122
name: expected/gdal/contour.gml
123123
type: vector
124124

125+
- algorithm: gdal:extractprojection
126+
name: Extract Projection (extractprojection)
127+
params:
128+
INPUT:
129+
name: dem.tif
130+
type: raster
131+
PRJ_FILE_CREATE: True
132+
results:
133+
WORLD_FILE:
134+
name: expected/gdal/dem.wld
135+
type: file
136+
PRJ_FILE:
137+
name: expected/gdal/dem.prj
138+
type: file
139+
140+
- algorithm: gdal:extractprojection
141+
name: Extract Projection (extractprojection)
142+
params:
143+
INPUT:
144+
name: dem.tif
145+
type: raster
146+
PRJ_FILE_CREATE: False
147+
results:
148+
WORLD_FILE:
149+
name: expected/gdal/dem.wld
150+
type: file
151+
PRJ_FILE: None
152+
125153
- algorithm: gdal:gdalinfo
126154
name: gdalinfo
127155
params:

0 commit comments

Comments
 (0)
Please sign in to comment.