[gdal-dev] Problems with transform raster image - try again !
Travis Kirstine
traviskirstine at gmail.com
Fri Nov 25 09:16:54 EST 2011
Jan,
Something does not look right with the coordinates / bbox of the
source g8746-1_cit.tif file.
Data should be within the DHDN / 3-degree Gauss-Kruger zone 2 bbox
2490547.1867, 5440321.7879, 2609576.6008, 5958700.0208
The gdalinfo indicates that dataset bbox is
-948545665.890,-1049712345.693, -896499098.738,-1021132473.110.
Are you trying to override the internal header values using the tfw?
My guess is that when you run the gdalwarp it tries to transform the
data using the bogus coordinates resulting in a error.
If you know that the coordinates / pixel size is correct in the tfw I
would strip out the header values by creating a new file.
gdal_translate -of GTiff -co PROFILE=BASELINE -co TFW=YES
g8746-1_cit.tif baseline.tif
This command will generate a tiff with no coordinate information
within the tif header along with a new "baseline.tfw" worldfile. You
then can edit this worldfile using the values you had indicated. You
then can try warping this file.
Good Luck
On 25 November 2011 05:49, Jan Tappenbeck <tappenbeck at widemann.de> 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
> coordintes:
>
> C:\Program Files (x86)\FWTools2.4.7>gdalinfo
> "D:\City\raster\gas\500\g8746-1_
> cit.tif"
> 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:
> COMPRESSION=LZW
> INTERLEAVE=BAND
> 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:
>
> 0.032098
> 0.000000
> 0.000000
> -0.032098
> 2586989.395890
> 5746263.495720
>
>
> 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"
> "D:\City\raster\gas\500\g8746-1_cit_epsg_utm.tif"
>
> i get following message:
>
> Copying color table from D:\City\raster\gas\500\g8746-1_cit.tif to new file.
> 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 :-)
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
More information about the gdal-dev
mailing list