<DIV>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.</DIV>
<DIV>...</DIV>
<DIV>double *m_AdGeoTransform=new double[6];</DIV>
<DIV>poDataset->GetGeoTransform(AdGeoTransform);</DIV>
<DIV>nX=poDataset->GetReasXsize();</DIV>
<DIV>nY=poDataset->GetReasYsize();</DIV>
<DIV> </DIV>
<DIV>MinX=AdGeoTransform[0];</DIV>
<DIV>MinY=AdGeoTransform[3];</DIV>
<DIV> </DIV>
<DIV>MaxX =AdGeoTransform[0]+nX*AdGeoTransform[1]+nY*AdGeoTransform[2];</DIV>
<DIV>MaxY=AdGeoTransform[3]+nX*AdGeoTransform[4]+nY*AdGeoTransform[5];</DIV>
<DIV>...</DIV>
<DIV> </DIV>
<DIV>I find that MaxY is less than MinY ,why?</DIV>
<DIV>Thk u in advance.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>to get min x, max x,min y and max y .</DIV>
<DIV> </DIV><br><br><span title="neteasefooter"/></span>