tyrasd / osmtogeojson

convert osm to geojson
http://tyrasd.github.io/osmtogeojson/
MIT License
683 stars 112 forks source link

Handle nodes without coordinates #143

Open jleedev opened 9 months ago

jleedev commented 9 months ago

When a node has no coordinates, treat it as missing for the purpose of constructing the multilinestring, multipolygon, or way geometry, to avoid producing coordinates of [NaN, NaN].

When a piece of a multipolygon or multilinestring contains no coordinates, remove it, to avoid inserting an empty array into the coordinates array.

Fixes #142