Hi all,

I am creating a layer for geopackage, But I don't see the fid I set using
setFID here is my code flow.

Step1:
poLayer = OGRDataSource::CreateLayer(....);

Step2:
adding all the fields

Step3:
poFeature = OGRFeature::CreateFeature( poLayer->GetLayerDefn() );

then
Step 4:
poFeature->SetFID(100);
 setting to a layer using
 poLayer->CreateFeature( poFeature )

Step 5:

OGRFeature::DestroyFeature( poFeature );
then destroying the poFeature,
again creating the feature using Step 3:

Every thing is fine but the feature id is set to start from 1, but I was
expecting
as 100 for the code flow above,

did I miss some GDAL API call ?.

Thanks
Gane
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to