<div>but i can read points and lines directly without wkb. problem is in reading polygon</div><div>if( poGeometry != NULL </div><div> && wkbFlatten(poGeometry->getGeometryType()) == wkbLineString )</div>
<div> {</div><div> OGRLineString *poPoint = (OGRLineString *) poGeometry;</div><div><br></div><div>for(int i=0;i<poPoint->getNumPoints();i++)</div><div>{</div><div><br></div><div>cout << poPoint->getX(i) << "::" << poPoint->getY(i) << endl;</div>
<div>}</div><div>}</div><br><div class="gmail_quote">On Sun, Jan 16, 2011 at 12:50 PM, Chaitanya kumar CH <span dir="ltr"><<a href="http://chaitanya.ch">chaitanya.ch</a>@<a href="http://gmail.com">gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Rashad,<br><br>Refer to <a href="http://www.opengeospatial.org/standards/sfa" target="_blank">http://www.opengeospatial.org/standards/sfa</a> for the official specification.<br>
You can use the wkb format for more clarity, but at the cost of more computation.<br>
<br><div class="gmail_quote"><div class="im">On Sun, Jan 16, 2011 at 11:56 AM, Mohammed Rashad <span dir="ltr"><<a href="mailto:mohammedrashadkm@gmail.com" target="_blank">mohammedrashadkm@gmail.com</a>></span> wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div class="im">
how to read a polygon from wkbPolygon geometry type. how read its set of points or points that make up the polygon<br clear="all"><br>-- <br><font color="#888888">Rashad<br>
</font><br></div>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><font color="#888888"><br><br clear="all"><br>-- <br>Best regards,<br>
Chaitanya kumar CH.<br>
/tʃaɪθənjə/ /kʊmɑr/ <br>+91-9494447584<br>17.2416N 80.1426E<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Rashad<br>