Closed dbboyd17 closed 1 year ago
No. KML is a markup language, not a data representation language. Beyond simple geometries, there is no canonical way to convert KML to GeoJSON.
You may find the types in github.com/twpayne/go-kml useful in your own converter.
Tom.
I take your point, and thanks for the exceedingly quick response!
I did find https://github.com/amundsentech/kml-decode
I’ll do a bit more digging/experimentation.
Cheers, Bruce.
From: Tom Payne @.> Sent: 21 December 2022 16:08 To: twpayne/go-geom @.> Cc: dbboyd17 @.>; Author @.> Subject: Re: [twpayne/go-geom] KML Decoding support (Issue #223)
No. KML is a markup language, not a data representation language. Beyond simple geometries, there is no canonical way to convert KML to GeoJSON.
You may find the types in github.com/twpayne/go-kml https://github.com/twpayne/go-kml useful in your own converter.
— Reply to this email directly, view it on GitHub https://github.com/twpayne/go-geom/issues/223#issuecomment-1361584539 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AL3TDMLQMKDO7W6DVMFBQ7LWOMTPTANCNFSM6AAAAAATFYX7WQ . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AL3TDMIDU436MEIVACODBCLWOMTPTA5CNFSM6AAAAAATFYX7WSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSRFAQZW.gif Message ID: @. @.> >
Is there any plan to support decoding of KML data, such that the package could be used to translate from KML to GeoJSON?