Skip to content

Export data from GeoKey to KML, GeoJSON, CSV

License

Notifications You must be signed in to change notification settings

ExCiteS/geokey-export

Repository files navigation

PyPI Package Travis CI Build Status Coveralls Test Coverage

geokey-export

Export data from GeoKey into various formats.

Currently supported formats:

  • KML
  • GeoJSON
  • CSV

Install

geokey-export requires:

  • Python version 2.7
  • GeoKey version 1.6 or greater

Install the extension from PyPI:

pip install geokey-export

Or from cloned repository:

cd geokey-export
pip install -e .

Add the package to installed apps:

INSTALLED_APPS += (
    ...
    'geokey_export',
)

Migrate the models into the database:

python manage.py migrate geokey_export

Copy static files:

python manage.py collectstatic

You're now ready to go!

Test

Run tests:

python manage.py test geokey_export

Check code coverage:

coverage run --source=geokey_export manage.py test geokey_export
coverage report -m --omit=*/tests/*,*/migrations/*