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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file geojson2fromto-0.3.0.tar.gz.
File metadata
- Download URL: geojson2fromto-0.3.0.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.19.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c1ea400c1f4098e2f3be8d38bfea1a6bc695a0776e9886a915e6eab26110aca
|
|
| MD5 |
7f13dbc13d203d00c1d2e0b93bb2e368
|
|
| BLAKE2b-256 |
3093a6ddebb8d4861c0ca6f12d04f489b3f3e84906a945a3595fe0f5f6e968ce
|
File details
Details for the file geojson2fromto-0.3.0-py2.py3-none-any.whl.
File metadata
- Download URL: geojson2fromto-0.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.19.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0563bd2662a33057b29cb065e6b37d221f4ddd239e710a6dd683d2da29ccb7f4
|
|
| MD5 |
1482e8cd913f28f806b9b361ac70f3d0
|
|
| BLAKE2b-256 |
84cbbca56e92997f72e110a23641cb4258bad72305780cfdc12e096f579d4183
|