[gdal-dev] reprojecting SRTM data

Vincent Schut schut at sarvision.nl
Thu Aug 16 02:43:32 PDT 2012


On 08/16/12 11:14, Zoltan Szecsei wrote:
> Hi,
> I've downloaded srtm_41_19 both in tiff and ASCII formats.
>
> I reproject the tiif image such:
> gdalwarp -t_srs '+proj=tmerc +lat_0=0 +lon_0=21 +k=1 +x_0=0 +y_0=0
> +ellps=WGS84 +datum=WGS84 +units=m +no_defs' srtm_41_19.tif srtm_lo21.tif
>
> and gdalinfo produces realistic values.
>
> But the software I want to use this tif-DEM in complains:
> Error encountered while reading GeoTIFF file:  Elevation data must
> be specified as 32-bit floating point samples.

Hi Zoltan,

you can add "-ot Float32" to your gdalwarp command to produce a 32-bit 
floating point file (which your software seems to want).

Best,
Vincent.
>
> The software however does read the ASCII version, but I need to
> re-project the ASCII file to Lo19 (see above proj string).
>
> How can I do this?
>
>
> Thanks & regards,
> Zoltan
>
>
>



More information about the gdal-dev mailing list