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.2.9.tar.gz
(14.8 kB
view hashes)
Built Distribution
Close
Hashes for geojson2fromto-0.2.9-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e20f3622c0b5c28a015db64b0eb79c810f5f55c76f4e343eaacc6974085a7dd |
|
MD5 | 3c10eb64c66a767b4821a095d2137707 |
|
BLAKE2b-256 | ff8f81f83dc883e2f71e53d0bdd09493d29611dd0b279bdef0060ac2d89bb2f6 |