[gdal-dev] Ignoring KML/KMZ id field
Peter Townsend
peter.townsend at maplarge.com
Tue Oct 21 17:55:41 PDT 2025
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 <bradh at frogmouth.net> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20251021/842a81ae/attachment.htm>
More information about the gdal-dev
mailing list