[FWTools] gdal_info gives different information vs reading from geotools GeoTiffReader

Frank Warmerdam warmerdam at pobox.com
Wed Dec 12 16:40:39 EST 2007

mzorova wrote:
> I wrote the EXACT same boundary information via geotools geotiffwriter and
> via gdal_translate. Then did a gdalinfo on both versions of the file. The
> information output by the gdal version of the file is accurate. The
> information output by the geotools version of the file is wrong. 
> I did verify by reading the information back in geotools via the
> geotiffreader and the information is coming back correctly. So that points
> to some incompatibility between the geotools writer and the gdal reader? 
> Any pointers on how I can get the two to see the same truth?


I don't know it for a fact, but I would guess that GeoTools has an "origin
at the center of the top left pixel" model while GDAL's is that the origin
is at the top left corner of the top left pixel.

You will need to adjust your actions accordingly.

Best regards,
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org

More information about the FWTools mailing list