Hi Chaitanya, I used the blow statements :
// To fetch features while( (poFeature = poLayer->GetNextFeature()) != NULL ) { } // To set fields for (int fieldCount = 0; fieldCount < poFDefn->GetFieldCount(); fieldCount ++) { } Kind regards, Tai -- View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-fix-Error-1-Invalid-Index-1-tp4990687p4990716.html Sent from the GDAL - Dev mailing list archive at Nabble.com. _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev