[Gdal-dev] gdal_translate : -a_ullr fail in specific case
guillaume huby
guillaume.huby.lists at gmail.com
Wed Jul 4 11:04:38 EDT 2007
Hello,
I met some trouble using -a_ullr option in some case. I have a file
input.tif :
> gdalinfo input.tif
Driver: GTiff/GeoTIFF
Files: input.tif
Size is 1026, 1076
Coordinate System is `'
Corner Coordinates:
Upper Left ( 0.0, 0.0)
Lower Left ( 0.0, 1076.0)
Upper Right ( 1026.0, 0.0)
Lower Right ( 1026.0, 1076.0)
Center ( 513.0, 538.0)
Band 1 Block=1026x7 Type=Byte, ColorInterp=Palette
Color Table (RGB with 256 entries)
... blabla
I try to translate it :
> gdal_translate -a_ullr 0.000000000000 0.000000000000 1026.000000000000 -
1076.000 input.tif output.tif
process OK, but :
> gdalinfo output.tif
Driver: GTiff/GeoTIFF
Files: output.tif
Size is 1026, 1076
Coordinate System is `'
Corner Coordinates:
Upper Left ( 0.0, 0.0)
Lower Left ( 0.0, 1076.0)
Upper Right ( 1026.0, 0.0)
Lower Right ( 1026.0, 1076.0)
Center ( 513.0, 538.0)
Band 1 Block=1026x7 Type=Byte, ColorInterp=Palette
Color Table (RGB with 256 entries)
... blabla
While I expected this kind of result :
Driver: GTiff/GeoTIFF
Files: output.tif
Size is 1026, 1076
Coordinate System is `'
Origin = (1.000000000000000,1.000000000000000)
Pixel Size = (1.000000000000000,-1.000000000000000)
Corner Coordinates:
Upper Left ( 1.0000000, 1.0000000)
Lower Left ( 0.000, -1076.000)
Upper Right ( 1026.000, 0.000)
Lower Right ( 1026.000, -1076.000)
Center ( 513.000, -538.000)
Band 1 Block=1026x7 Type=Byte, ColorInterp=Palette
Color Table (RGB with 256 entries)
... blabla
If I change one value of -a_ullr, everything is OK, but for those specific
values, it doesn't work ! Is it normal or is it a bug ?
Thanks for your replies.
Best regards,
Guillaume.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20070704/b0286066/attachment.html
More information about the Gdal-dev
mailing list