Rashad,<br><br>Polygons are made of one or more linear rings. A linear ring can be read pretty much the same as a linestring.<br><a href="http://www.gdal.org/ogr/classOGRGeometry.html">http://www.gdal.org/ogr/classOGRGeometry.html</a><br>
<br><div class="gmail_quote">On Sun, Jan 16, 2011 at 12:55 PM, Mohammed Rashad <span dir="ltr"><<a href="mailto:mohammedrashadkm@gmail.com">mohammedrashadkm@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<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 class="h5">
<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" target="_blank">chaitanya.ch</a>@<a href="http://gmail.com" target="_blank">gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); 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>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>
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></div></div>-- <br><font color="#888888">Rashad<br>
</font><br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">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><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>