The problem is: after the last while loop. I need to set SetSpatialFilter and Feature again (The spatialfilter that used in the previous while loop), by using below codes:
poLayer->SetSpatialFilter (poGeometry); poLayer->SetNextByIndex (index2-1); Kind regards, Tai -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Using-OGRLayer-GetNextFeature-to-read-Dgn-file-tp5060084p5060290.html Sent from the GDAL - Dev mailing list archive at Nabble.com. _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
