Python module to convert GeoJSON to the 'from-to' format used by deck.gl's LineLayer
Project description
Python module that converts LineStrings and MultiLineStrings of a GeoJSON FeatureCollection to DECK.GL’s LineLayer ‘from-to’
Requirements
Python 3 - 3.6. Python 3.7 doesn’t work due to pyproj’s lack of support for Python 3.7 which is a dependency of geopandas which has it’s own related issue to this
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
$ git@github.com:weaselandfox/geojson2fromto.git $ cd geojson2fromto $ pipenv install
Dev Usage
$ pipenv shell $ python . input.geojson output.json
Tests
Make sure you have activated a virtualenv (run $ pipenv shell)
$ pytest
License
MIT © Weasel & Fox
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
geojson2fromto-0.2.8.tar.gz
(14.6 kB
view hashes)
Built Distribution
Close
Hashes for geojson2fromto-0.2.8-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b0c56e1579bd1d53345cb06636fa873b19ae113f0bacfa47745dd0b9c619253 |
|
MD5 | 345293bc80507a9486281a0429a95631 |
|
BLAKE2b-256 | 98cdd00d6d330ea7e6b8113024f6c5b78c350b370ac6b64f6a501283c5581d92 |