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 .
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev