[Gdal-dev] Transformation from UTM32 WGS84 (EPSG:32632) to latlong (EPSG:4326)

shortyII sschantz at bfs.de
Mon Aug 13 02:16:29 EDT 2007


Hi,
thank you Wolfgang. Your solution works, but I had to edit the line
<GeoTransform> 3.2256531250000000e+007...
to
<GeoTransform> 2.56531250000000e+005...

Changing the line <DstRect xOff="-32000000" ... had no effect.

Kind regards,
Stefan


WolfgangZ wrote:
> 
> 
> I don't know if there is a more elegant way to do it but you can try the 
>   following approach:
> 
> 1. create a Virtual Raster File for your input map
> gdal_translate -of VRT map.tif map.vrt
> 2. the vrt file is just a ascii file:
> edit the lines
> "<DstRect xOff="0" yOff="0" xSize="5000" ySize="5000"/>"
> to
> "<DstRect xOff="-32000000" yOff="0" xSize="5000" ySize="5000"/>"
> (you have to do it for all bands in your input map)
> 3. use the vrt as input for gdal_warp (or for gdal_translate if you just 
> want a corrected input map).
> 
> Regards
> Wolfgang
> 
> 

-- 
View this message in context: http://www.nabble.com/Transformation-from-UTM32-WGS84-%28EPSG%3A32632%29-to-latlong-%28EPSG%3A4326%29-tf4241391.html#a12121371
Sent from the GDAL - Dev mailing list archive at Nabble.com.




More information about the Gdal-dev mailing list