Rashad,
Polygons are made of one or more linear rings. A linear ring can be read
pretty much the same as a linestring.
http://www.gdal.org/ogr/classOGRGeometry.html
On Sun, Jan 16, 2011 at 12:55 PM, Mohammed Rashad
mohammedrasha...@gmail.com wrote:
but i can read points and lines directly
how to read a polygon from wkbPolygon geometry type. how read its set of
points or points that make up the polygon
--
Rashad
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev
Rashad,
Refer to http://www.opengeospatial.org/standards/sfa for the official
specification.
You can use the wkb format for more clarity, but at the cost of more
computation.
On Sun, Jan 16, 2011 at 11:56 AM, Mohammed Rashad
mohammedrasha...@gmail.com wrote:
how to read a polygon from
but i can read points and lines directly without wkb. problem is in reading
polygon
if( poGeometry != NULL
wkbFlatten(poGeometry-getGeometryType()) == wkbLineString )
{
OGRLineString *poPoint = (OGRLineString *) poGeometry;
for(int