<div> OGRPolygon *polygon = (OGRPolygon *) poGeometry;</div><div><br></div><div> </div><div><br></div><div> OGRLinearRing *extring = polygon->getExteriorRing();</div><div> for(int i=0;i<extring->getNumPoints();i++)</div>
<div> {</div><div> cout << extring->getX(i) << ":::::" << extring->getY(i) << endl;</div><div> }</div><div><br></div><div>the shapefile is in UTM projection</div>
<div>the above said code gives me error . here is the output</div><div><br></div><div>......</div><div>.............</div><div>.................................</div><div><br></div><div><div>-269341:::::2.7739e+06</div><div>
-270188:::::2.77958e+06</div><div>-267595:::::2.78341e+06</div><div>-266748:::::2.78775e+06</div><div>-265868:::::2.78773e+06</div><div>-262193:::::2.78899e+06</div><div>-260416:::::2.79265e+06</div><div>-258088:::::2.79378e+06</div>
<div>-257291:::::2.79542e+06</div><div>-257241:::::2.79553e+06</div><div>-256359:::::2.79637e+06</div><div>-254724:::::2.79808e+06</div><div>-253177:::::2.79897e+06</div><div>-252022:::::2.79541e+06</div><div>-252103:::::2.79144e+06</div>
<div>-248101:::::2.79034e+06</div><div>-246005:::::2.79466e+06</div><div>-244207:::::2.79732e+06</div><div>-240802:::::2.79897e+06</div><div>-238885:::::2.80189e+06</div><div>-239955:::::2.80502e+06</div><div>-240802:::::2.80936e+06</div>
</div><div><br></div><div>................................</div>.................<div>......</div><div><meta http-equiv="content-type" content="text/html; charset=utf-8">-240802:::::2.80936e+06 how to get rid of e+06 and convert it to double<br>
-- <br>Rashad<br>
</div>