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: Add fixtures, block invalid GPX inputs #80

Closed tmcw closed 2 years ago

tmcw commented 2 years ago

Part of the intent of toGeoJSON is to handle a wide range of inputs, including invalid inputs. It shouldn't crash and shouldn't produce bad GeoJSON.

This PR adds fixtures with example bad inputs to make sure that the conversion doesn't translate them into bad outputs.