[Gdal-dev] Negative values returned by GetRasterYSize()

Roger James rogerjames99 at btinternet.com
Tue Jul 8 05:51:24 EDT 2003


Is there a convention for raster orientation in GDAL and if so is it
stated somewhere.

 

I am having some trouble with images that return negative values for
RasterYSize., and could do with some guidance on how to interpret this.

 

I assume that a negative value means that the raster should be
accessed/affined with a bottom up cell (pixel, display etc.) co-ordinate
system? If so I think this should be documented.

 

If it already is then please accept my apologies and tell me where to
look.

 

Is this handled consistently. I am getting images that display the right
way up but when I use the affine co-efficients the y geo co-ordinate is
flipped.

 

I realise that this is a problem in my code but I just cannot seem to
get the correct mapping between the window co-ord system and the image
co-ord system.

 

Thanks.

 

Roger

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20030708/05ad24e6/attachment.html


More information about the Gdal-dev mailing list