mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
[processing] add test for gdalinfo algorithm
This commit is contained in:
parent
2d561f5739
commit
519e76c79f
37
python/plugins/processing/tests/testdata/expected/gdal/raster_info.html
vendored
Normal file
37
python/plugins/processing/tests/testdata/expected/gdal/raster_info.html
vendored
Normal file
@ -0,0 +1,37 @@
|
||||
<pre>Driver: GTiff/GeoTIFF
|
||||
Files: /home/alex/devel/cpp/qgis/python/plugins/processing/tests/testdata/raster.tif
|
||||
Size is 16, 14
|
||||
Coordinate System is:
|
||||
PROJCS["ED50 / UTM zone 30N",
|
||||
GEOGCS["ED50",
|
||||
DATUM["European_Datum_1950",
|
||||
SPHEROID["International 1924",6378388,297.0000000000014,
|
||||
AUTHORITY["EPSG","7022"]],
|
||||
AUTHORITY["EPSG","6230"]],
|
||||
PRIMEM["Greenwich",0],
|
||||
UNIT["degree",0.0174532925199433],
|
||||
AUTHORITY["EPSG","4230"]],
|
||||
PROJECTION["Transverse_Mercator"],
|
||||
PARAMETER["latitude_of_origin",0],
|
||||
PARAMETER["central_meridian",-3],
|
||||
PARAMETER["scale_factor",0.9996],
|
||||
PARAMETER["false_easting",500000],
|
||||
PARAMETER["false_northing",0],
|
||||
UNIT["metre",1,
|
||||
AUTHORITY["EPSG","9001"]],
|
||||
AUTHORITY["EPSG","23030"]]
|
||||
Origin = (270736.067325068172067,4459029.574521748349071)
|
||||
Pixel Size = (10.236696404106624,-10.044151671496886)
|
||||
Metadata:
|
||||
AREA_OR_POINT=Area
|
||||
Image Structure Metadata:
|
||||
INTERLEAVE=BAND
|
||||
Corner Coordinates:
|
||||
Upper Left ( 270736.067, 4459029.575) ( 5d41'43.48"W, 40d14'58.76"N)
|
||||
Lower Left ( 270736.067, 4458888.956) ( 5d41'43.30"W, 40d14'54.20"N)
|
||||
Upper Right ( 270899.854, 4459029.575) ( 5d41'36.56"W, 40d14'58.92"N)
|
||||
Lower Right ( 270899.854, 4458888.956) ( 5d41'36.38"W, 40d14'54.37"N)
|
||||
Center ( 270817.961, 4458959.265) ( 5d41'39.93"W, 40d14'56.56"N)
|
||||
Band 1 Block=16x14 Type=Float32, ColorInterp=Gray
|
||||
NoData Value=-32768
|
||||
</pre>
|
@ -37,9 +37,26 @@ tests:
|
||||
SUMMARY_ONLY: 'True'
|
||||
results:
|
||||
OUTPUT:
|
||||
name: expected/gdal/layer_info.html
|
||||
name: expected/gdal/vector_info.html
|
||||
type: regex
|
||||
rules:
|
||||
- 'Extent: \(-1.000000, -3.000000\) - \(11.000000, 5.000000\)'
|
||||
- 'Geometry: Line String'
|
||||
- 'Feature Count: [6|7]' # On some platforms returns 6 instead of 7...
|
||||
|
||||
- algorithm: gdalorg:rasterinfo
|
||||
name: GDAL gdalinfo
|
||||
params:
|
||||
INPUT:
|
||||
name: raster.tif
|
||||
type: raster
|
||||
NOGCP: false
|
||||
NOMETADATA: false
|
||||
results:
|
||||
OUTPUT:
|
||||
name: expected/gdal/raster_info.html
|
||||
type: regex
|
||||
rules:
|
||||
- 'Origin = \(270736.067325068172067,4459029.574521748349071\)'
|
||||
- 'Band 1 Block=16x14 Type=Float32, ColorInterp=Gray'
|
||||
- ' NoData Value=-32768'
|
||||
|
Loading…
x
Reference in New Issue
Block a user