[gdal-dev] Ignoring KML/KMZ id field

Brad Hards bradh at frogmouth.net
Tue Oct 21 17:47:45 PDT 2025


On Wednesday, 22 October 2025 9:07:39 AM AEDT Peter Townsend via gdal-dev wrote:
> Is there a config or command line option that can tell it to ignore the id
> field? Either by just not including it from the KMZ or alternately
> something like an ignore list for CSV headers?

Its not clear what tool or code you are using, so this is going to hand-wave a bit.

If you're in code, you can skip fields using SetIgnoredFields():
https://gdal.org/en/stable/doxygen/classOGRLayer.html#aaf3f2e7ee476337082cea814226be11a[1]

For a tool like ogr2ogr, you could try -unsetFid, or build a -fieldmap if it isn't too messy.

Brad

--------
[1] https://gdal.org/en/stable/doxygen/classOGRLayer.html#aaf3f2e7ee476337082cea814226be11a
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20251022/270c2c4f/attachment.htm>


More information about the gdal-dev mailing list