[gdal-dev] Selection using OGR

2015-11-11 Thread user gdal
Hello, I have a shape file which consists of many polygons (say 56). Programmatically I wish to select (say, one poly.) from them. I proceeded something like this. OGRLayer *clippingshp; unsigned int NumPolygons; while((tempfeature=inlayer->GetNextFeature( ))!=NULL) { clippingshp->CreateFeatur

[gdal-dev] (no subject)

2015-11-11 Thread user gdal
Hello, I have a shape file which consists of many polygons (say 56). Programmatically I wish to select (say, one poly.) from them. I proceeded something like this. OGRLayer *clippingshp; unsigned int NumPolygons; while((tempfeature=inlayer->GetNextFeature( ))!=NULL) { clippingshp->CreateFeatur