[gdal-dev] converting AAIGrid to SRTM

Even Rouault even.rouault at spatialys.com
Fri Oct 25 02:58:46 PDT 2019


> It doesn't :)

That would be surprising. See below:

Non-appropriate extent/resolution

$ gdal_translate test.tif N48E002.HGT -of srtmhgt -outsize 1201 1201 -a_srs 
EPSG:4326 -a_ullr 2 49 3 48
Input file size is 20, 20
Warning 1: The corner coordinates of the source are not properly aligned on 
plain latitude/longitude boundaries.
0...10...20...30...40...50...60...70...80...90...100 - done.

vs correct one:

$ gdal_translate test.tif N48E002.HGT -of srtmhgt -outsize 1201 1201 -a_srs 
EPSG:4326 -a_ullr 1.9995833333333333 49.0004166666666666667 
3.0004166666666666667 47.999583333333334
Input file size is 20, 20
0...10...20...30...40...50...60...70...80...90...100 - done.



-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list