[gdal-dev] GetFIDColumn : FID Column for ESRI Shape file

Even Rouault even.rouault at spatialys.com
Wed Sep 30 06:37:27 PDT 2015


Le mercredi 30 septembre 2015 15:32:40, Gane R a écrit :
> Hi,
> 
> Is it that OGRLayer::GetFIDColumn will return empty string for Shapefile I
> have or it will be always empty for all shape files?

Always empty

> 
> If I can see FID Column for a shape file in any other application can you
> name any one of them

They likely use a conventionnal name. But technically there's no field in the 
.dbf or the .shp to hold the name of the FID.
Also good to know: the OGR shapefile driver starts its numbering at 0 for the 
FID.

> 
> 
> Gane

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list