<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-&gt;GetGeoTransform(AdGeoTransform);</DIV>
<DIV>nX=poDataset-&gt;GetReasXsize();</DIV>
<DIV>nY=poDataset-&gt;GetReasYsize();</DIV>
<DIV>&nbsp;</DIV>
<DIV>MinX=AdGeoTransform[0];</DIV>
<DIV>MinY=AdGeoTransform[3];</DIV>
<DIV>&nbsp;</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>&nbsp;</DIV>
<DIV>I find that MaxY is less than MinY ,why?</DIV>
<DIV>Thk u in advance.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>to get min x, max x,min y and max y .</DIV>
<DIV>&nbsp;</DIV><br><br><span title="neteasefooter"/></span>