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

Frank Warmerdam warmerdam at pobox.com
Tue Jul 8 08:23:57 EDT 2003


Roger James wrote:
> 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.

Roger,

To clarify the GDALGetRasterYSize() function, or GDALDataset::GetRasterYSize()
method is returning a negative value?  This should never occur, and persumably
indicates a buggy format driver, or a corrupt dataset.   Can you provide an
example?

However, if you mean that the y pixel size component of the geotransform is
negative then that is the normal convention for georeferenced images.

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    | Geospatial Programmer for Rent





More information about the Gdal-dev mailing list