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

Roger James rogerjames99 at btinternet.com
Tue Jul 8 13:40:30 EDT 2003


Frank,

A thousand apologies. It was getting late and I was chasing my own tail.
I have just looked at it again and realised that I had left in an old
hack to handle some images with bad transforms. I had forgotten all
about it.

Mea culpa.

Roger





> -----Original Message-----
> From: gdal-dev-admin at remotesensing.org [mailto:gdal-dev-
> admin at remotesensing.org] On Behalf Of Frank Warmerdam
> Sent: 08 July 2003 13:24
> To: gdal-dev at remotesensing.org
> Subject: Re: [Gdal-dev] Negative values returned by GetRasterYSize()
> 
> 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
> 
> 
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at remotesensing.org
> http://remotesensing.org/mailman/listinfo/gdal-dev





More information about the Gdal-dev mailing list