[gdal-dev] Question on using SetFID
Gane R
gane.prog at gmail.com
Tue Feb 16 23:33:02 PST 2016
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20160217/98de8353/attachment.html>
More information about the gdal-dev
mailing list