Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Feature id is ignored for GeoJSON output format #5207
I configured a GeoJSON output format using the OGR GeoJSON driver. When I specify the feature id field using
According to the GeoJSON specification the id should be set on the feature object:
Hum, calling OGR_F_CreateFeature() with a non-default FID might not work in some circumstances. I see for example that the MapInfo driver starting with GDAL 2.0 can handle user-defined FID, but only if the FID is in the range [1, max_fid]. That is to say it can fill holes, but not extend the file. Previous versions ignored completely the FID, so that would work.