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

KML Bounds Not Parsed #112

Closed mackswell13 closed 1 year ago

mackswell13 commented 1 year ago

When trying to parse the below kml that uses bounds rather than coordinates there is no way to access the north south east west bounds. I was hoping that this could be a added feature for those that are trying to access those bounds after parsing.

mackswell13 commented 1 year ago

my bad.... This should be the correct one here. Would you mind removing that comment. thanks! 03 test.zip

tmcw commented 1 year ago

Okay - so got it, this does contain bounds, which are parsed into Polygons. The idea is to produce a bbox property?

mackswell13 commented 1 year ago

Yes a Bbox property would work great here. That would allow us to pull out the bbox object and pass as our bounds. In this case we would also like to keep the rotation property so that when we go to draw the object we can reflect that property as well.