Re: [gdal-dev] OGR read polygon

2011-01-16 Thread Chaitanya kumar CH
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

[gdal-dev] OGR read polygon

2011-01-15 Thread Mohammed Rashad
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

Re: [gdal-dev] OGR read polygon

2011-01-15 Thread Chaitanya kumar CH
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

Re: [gdal-dev] OGR read polygon

2011-01-15 Thread Mohammed Rashad
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