[gdal-dev] geotiff projection not showing up

Even Rouault even.rouault at mines-paris.org
Mon Nov 11 12:06:53 PST 2013


Le lundi 11 novembre 2013 20:46:47, Norman Goldstein a écrit :
> Frank and Trent,
> 
> I have created a proper GeoTIFF file with the code
> listed, below.  There is still one oddity:
> The code sets the   line/sample --> x/y   affine transformation
> using an array of 6 doubles.  The code contains a conditional
> compilation that chooses between two different arrays of
> 6 doubles.
> 
> The #if 1 array produces a full listgeo dump.
> The #else listgeo dump is missing the corner coordinates.
> 
> The difference between the two arrays is
> -- The false northing for #if 1 is  0.001 .
> -- The false northing for #else  is  0
> 
> Is this a quirk of GDAL?  of listeo?  Or, should map x,y
> always be set up to take on only positive values?

The GDAL GTiff driver considers that the  {0.0, 1.0, 0.0, 0.0, 0.0, -1.0} 
geotransform as indicating that the image is not georeferenced (identity 
geotransform). This is not something that you are likely to use in real-world 
situations.

-- 
Geospatial professional services
http://even.rouault.free.fr/services.html


More information about the gdal-dev mailing list