[gdal-dev] max y is less than min y

weixj2003ld weixj2003ld at 163.com
Sun Apr 4 21:18:54 EDT 2010


I read a .tif file ,and use the following code to get the MinX,MinY,MaxX and MaxY of the coordation of the tif image.
...
double *m_AdGeoTransform=new double[6];
poDataset->GetGeoTransform(AdGeoTransform);
nX=poDataset->GetReasXsize();
nY=poDataset->GetReasYsize();
 
MinX=AdGeoTransform[0];
MinY=AdGeoTransform[3];
 
MaxX =AdGeoTransform[0]+nX*AdGeoTransform[1]+nY*AdGeoTransform[2];
MaxY=AdGeoTransform[3]+nX*AdGeoTransform[4]+nY*AdGeoTransform[5];
...
 
I find that MaxY is less than MinY ,why?
Thk u in advance.
 
 
to get min x, max x,min y and max y .
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100405/c9b86aa7/attachment.html


More information about the gdal-dev mailing list