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 ./geojson2fromto 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.3.0.tar.gz
(15.4 kB
view hashes)
Built Distribution
Close
Hashes for geojson2fromto-0.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0563bd2662a33057b29cb065e6b37d221f4ddd239e710a6dd683d2da29ccb7f4 |
|
MD5 | 1482e8cd913f28f806b9b361ac70f3d0 |
|
BLAKE2b-256 | 84cbbca56e92997f72e110a23641cb4258bad72305780cfdc12e096f579d4183 |