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 i=0;i<poPoint->getNumPoints();i++) { cout << poPoint->getX(i) << "::" << poPoint->getY(i) << endl; } } On Sun, Jan 16, 2011 at 12:50 PM, Chaitanya kumar CH <chaitanya...@gmail.com > wrote: > 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 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 >> > > > > -- > Best regards, > Chaitanya kumar CH. > /tʃaɪθənjə/ /kʊmɑr/ > +91-9494447584 > 17.2416N 80.1426E > -- Rashad
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev