Skip to content

Latest commit

 

History

History
72 lines (47 loc) · 1.36 KB

README.rst

File metadata and controls

72 lines (47 loc) · 1.36 KB

geojson2fromto

Python module that converts LineStrings and MultiLineStrings of a GeoJSON FeatureCollection to DECK.GL’s LineLayer ‘from-to’

PyPi package

Requirements

Install

$ pip install geojson2fromto

Usage

$ geojson2fromto data.geojson [from-to-data.json]

Note: To use the resulting JSON with Deck.GL’s LineLayer the coordinateSystem prop of the LineLayer has to be set to COORDINATE_SYSTEM.LNGLAT_EXPERIMENTAL

Dev Install

$ [email protected]:weaselandfox/geojson2fromto.git
$ cd geojson2fromto
$ pipenv install

Dev Usage

$ pipenv shell
$ python ./geojson2fromto input.geojson [output.json]

Tests

Make sure you have activated a virtualenv (run $ pipenv shell)

$ pytest

License

MIT © Weasel & Fox