Metadata-Version: 2.1
Name: geojson2fromto
Version: 0.3.0
Summary: Python module to convert GeoJSON to the 'from-to' format used by deck.gl's LineLayer
Home-page: https://github.com/weaselandfox/geojson2fromto
License: UNKNOWN
Author: Weasel & Fox
Author-email: hello@weaselandfox.com
Description-Content-Type: text/x-rst
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.6
Requires-Dist: geopandas
Requires-Dist: simplejson

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 <https://github.com/jswhit/pyproj/issues/136>`__ which is a
   dependency of `geopandas <https://github.com/geopandas/geopandas>`__
   which has `it’s own related
   issue <https://github.com/geopandas/geopandas/issues/793>`__ 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 <https://www.weaselandfox.com>`__

