jazzband / geojson

Python bindings and utilities for GeoJSON
https://pypi.python.org/pypi/geojson/
BSD 3-Clause "New" or "Revised" License
898 stars 120 forks source link

Adding geojson.utils.lines()? #142

Open deeplook opened 4 years ago

deeplook commented 4 years ago

While I use geojson.utils.coords() to get coordinates out of a GeoJSON file, sometimes I want to have lines that I can plot more directly. So I created a function to iterate over such lines, see https://github.com/deeplook/spheromones/blob/master/utils.py#L98. This is used in that repo (with a binder interface) to render GeoJSON as lines on a sphere (there I don't use geojson.utils.coords(), but I could, and do elsewhere ;).

So my question or feature request would be for the authors of this geojson package to think about adding such a function to iterate over lines to this package, maybe in a modified better form?