Ah, I did forget to mention I’m just invoking ogr2ogr. I’ll try unsetFid tomorrow. A field map isn’t really doable, it’s meant to just ogr any ol’ random input file.
Peter Townsend Senior Software Developer On Tue, Oct 21, 2025 at 7:47 PM Brad Hards <[email protected]> wrote: > 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 > > For a tool like ogr2ogr, you could try -unsetFid, or build a -fieldmap if > it isn't too messy. > > Brad >
_______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
