[gdal-dev] Re: Problems with transform raster image - try again !
peifer at gmx.eu
Fri Nov 25 22:27:05 EST 2011
Another option would be to gdal_translate to a .vrt by using
-a_srs srs_def EPSG:31466
-a_nodata value # in case you happen to know
-a_ullr ulx uly lrx lry # coordinates at pixel edges, not their centre
Think about the .vrt as being the big brother of a world file. You might
want to spend some time reading the documentation at ,  and .
On 25/11/2011 11:49, Jan Tappenbeck wrote:
> HI !
> i try my translation in use of an other tif-source files!
> here even in the tif-header are informations about the reference - worst
> C:\Program Files (x86)\FWTools2.4.7>gdalinfo
> Driver: GTiff/GeoTIFF
> Files: D:\City\raster\gas\500\g8746-1_cit.tif
> Size is 16215, 8904
> Coordinate System is `'
> Origin = (-948545665.889520530000000,-1021132473.110479500000000)
> Pixel Size = (3209.779041131308100,-3209.779041131308100)
> Image Structure Metadata:
> Corner Coordinates:
> Upper Left (-948545665.890,-1021132473.110)
> Lower Left (-948545665.890,-1049712345.693)
> Upper Right (-896499098.738,-1021132473.110)
> Lower Right (-896499098.738,-1049712345.693)
> Center (-922522382.314,-1035422409.402)
> Band 1 Block=16215x1 Type=Byte, ColorInterp=Palette
> Color Table (RGB with 256 entries)
> 0: 255,255,255,255
> i create following twf-file manuell:
> but when i now try to translate by
> C:\Program Files (x86)\FWTools2.4.7>gdalwarp -s_srs EPSG:31466 -t_srs
> EPSG:25832 "D:\City\raster\gas\500\g8746-1_cit.tif"
> i get following message:
> Copying color table from D:\City\raster\gas\500\g8746-1_cit.tif to new
> Creating output file that is 0P x 0L.
> ERROR 1: Attempt to create 0x0 dataset is illegal,sizes must be larger
> than zero
> did anyone / you have a idea how to translate successfully?
> alternative to edit the coordinates manuell in the tif-file?
> it is very important for me.
> reagrads Jan :-)
More information about the gdal-dev