geojson2fromto
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
Release files for geojson2fromto 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| geojson2fromto-0.3.0.tar.gz | 15.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| geojson2fromto-0.3.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 23.2 kB
Release files / geojson2fromto-0.3.0.tar.gz
| Download URL | geojson2fromto-0.3.0.tar.gz |
|---|---|
| Size | 15.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c1ea400c1f4098e2f3be8d38bfea1a6bc695a0776e9886a915e6eab26110aca
|
|
BLAKE2b-256 checksum How to use checksums |
3093a6ddebb8d4861c0ca6f12d04f489b3f3e84906a945a3595fe0f5f6e968ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.19.1
|
Release files / geojson2fromto-0.3.0-py2.py3-none-any.whl
| Download URL | geojson2fromto-0.3.0-py2.py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
0563bd2662a33057b29cb065e6b37d221f4ddd239e710a6dd683d2da29ccb7f4
|
|
BLAKE2b-256 checksum How to use checksums |
84cbbca56e92997f72e110a23641cb4258bad72305780cfdc12e096f579d4183
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.19.1
|