Skip to content

Python module to convert GeoJSON to the 'from-to' format used by DECK.GL's LineLayer

License

Notifications You must be signed in to change notification settings

weaselandfox/geojson2fromto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geojson2fromto

Python module that converts LineStrings and MultiLineStrings of a GeoJSON FeatureCollection to DECK.GL’s LineLayer ‘from-to’

PyPi package

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

$ [email protected]: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

About

Python module to convert GeoJSON to the 'from-to' format used by DECK.GL's LineLayer

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages