Skip to content

Commit

Permalink
Added tests for gdal extractprojection
Browse files Browse the repository at this point in the history
  • Loading branch information
havatv committed Nov 6, 2018
1 parent 566d572 commit b935555
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
@@ -0,0 +1 @@
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
@@ -0,0 +1,6 @@
0.00010000
0.00000000
0.00000000
-0.00010000
18.66634794
45.81165144
28 changes: 28 additions & 0 deletions python/plugins/processing/tests/testdata/gdal_algorithm_tests.yaml
Expand Up @@ -122,6 +122,34 @@ tests:
name: expected/gdal/contour.gml
type: vector

- algorithm: gdal:extractprojection
name: Extract Projection (extractprojection)
params:
INPUT:
name: dem.tif
type: raster
PRJ_FILE_CREATE: True
results:
WORLD_FILE:
name: expected/gdal/dem.wld
type: file
PRJ_FILE:
name: expected/gdal/dem.prj
type: file

- algorithm: gdal:extractprojection
name: Extract Projection (extractprojection)
params:
INPUT:
name: dem.tif
type: raster
PRJ_FILE_CREATE: False
results:
WORLD_FILE:
name: expected/gdal/dem.wld
type: file
PRJ_FILE: None

- algorithm: gdal:gdalinfo
name: gdalinfo
params:
Expand Down

0 comments on commit b935555

Please sign in to comment.