[Gdal-dev] ogr getnextfeature

Mateusz Loskot mateusz at loskot.net
Fri Jan 19 09:30:47 EST 2007


mouhamad mbaye wrote:
> OGRLayer::GetNextFeature( );
> I have a shape file and I want to know how I must proceed for the reading

Have you checked the "Reading from OGR" section in the OGR tutorial?

http://www.gdal.org/ogr/ogr_apitut.html

It presents how to read features from shapefile of points.
Next, if you have shapefile with other types of geometries,
for instance polygons, you can follow steps I described in point 4,
in my previous reply.

Cheers
-- 
Mateusz Loskot
http://mateusz.loskot.net



More information about the Gdal-dev mailing list