> Od: Jaromír Mikeš <[email protected]> > gdal_translate -of SRTMHGT ${tile}.tif ${tile}.hgt > > Warning 1: The corner coordinates of the source are not properly aligned on > plain latitude/longitude boundaries. > ERROR 1: Image dimensions should be 1201x1201 or 3601x3601.
$ gdalwarp -of GTiff -srcnodata 32767 -t_srs "+proj=utm +zone=18F +datum=WGS84" -rcs -order 3 -tr 90 90 -multi ASTGTM2_S50W068_dem.tif S50W068.tif Creating output file that is 927P x 1314L. [snip] $ gdal_translate -of SRTMHGT S50W068.tif S50W068.hgt Input file size is 927, 1314 0Warning 1: The corner coordinates of the source are not properly aligned on plain latitude/longitude boundaries. ERROR 1: Image dimensions should be 1201x1201 or 3601x3601. So I think instead of -tr 90 90 should be used -ts 1201 1201 for re-sampling in this case, because image dimensions 1201x1201 is expected from gdal_translate -of SRTMHGT $ gdalwarp -of GTiff -srcnodata 32767 -t_srs "+proj=utm +zone=18F +datum=WGS84" -rcs -order 3 -ts 1201 1201 -multi ASTGTM2_S50W068_dem.tif S50W068.tif Creating output file that is 1201P x 1201L. [snip] $ gdal_translate -of SRTMHGT S50W068.tif S50W068.hgt Input file size is 1201, 1201 0Warning 1: The corner coordinates of the source are not properly aligned on plain latitude/longitude boundaries. Warning 1: Expected output filename is S5569384E10. I still need get rid of this 0Warning. thank you mira _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
