placemark / togeojson

convert KML, TCX, and GPX to GeoJSON, without the fuss
https://placemark.github.io/togeojson/
BSD 2-Clause "Simplified" License
401 stars 67 forks source link

fix: properly support KMLs with sibling MultiGeometries #96

Closed harveylee closed 1 year ago

harveylee commented 1 year ago

It is valid to have multiple MultiGeometry child nodes in a MultiGeometry container. v5.2.2 incorrectly only converted the first MultiGeometry node at each level of the hierarchy. This fix concatenates the geometry from each MultiGeometry.

I have also added a test file and updated the snapshot.

tmcw commented 1 year ago

Thanks! Merged and I'll roll a release in a moment. Released in 5.3.0