Skip to main content

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

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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

geojson2fromto-0.3.0-py2.py3-none-any.whl (7.8 kB view details)

Uploaded Python 2Python 3

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

Hashes for geojson2fromto-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6c1ea400c1f4098e2f3be8d38bfea1a6bc695a0776e9886a915e6eab26110aca
MD5 7f13dbc13d203d00c1d2e0b93bb2e368
BLAKE2b-256 3093a6ddebb8d4861c0ca6f12d04f489b3f3e84906a945a3595fe0f5f6e968ce

See more details on using hashes here.

File details

Details for the file geojson2fromto-0.3.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for geojson2fromto-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0563bd2662a33057b29cb065e6b37d221f4ddd239e710a6dd683d2da29ccb7f4
MD5 1482e8cd913f28f806b9b361ac70f3d0
BLAKE2b-256 84cbbca56e92997f72e110a23641cb4258bad72305780cfdc12e096f579d4183

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page