Skip to main content
PyPI Package Travis CI Build Status Coveralls Test Coverage

geokey-dataimports

Import data from various formats (GeoJSON, KML, CSV) into GeoKey.

Install

geokey-dataimports requires:

  • Python version 2.7

  • GeoKey version 1.6 or greater

Install the geokey-dataimports from PyPI:

pip install geokey-dataimports

Or from cloned repository:

cd geokey-dataimports
pip install -e .

Add the package to installed apps:

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

Migrate the models into the database:

python manage.py migrate geokey_dataimports

Copy static files:

python manage.py collectstatic

You’re now ready to go!

Run within Docker container

If you’re cloning the repository and have GeoKey running within a Docker container, configure it like such:

  1. Make sure repositories are cloned next to each other, e.g. file structure is:

/MyProjects/geokey/
/MyProjects/geokey-dataimports/
  1. Modify Dockerfile (within “geokey” repository) so that it looks similar to:

...
ADD /geokey /app
ADD /geokey-dataimports /extensions/geokey-dataimports
...
RUN pip install -e /app
RUN pip install -e /extensions/geokey-dataimports
  1. Modify docker-compose.yml and add a new volume:

...
volumes:
  - ./geokey:/app/geokey
  - ../geokey-dataimports/geokey_dataimports:/extensions/geokey-dataimports/geokey_dataimports
...

You can also run migrations, make new ones, etc. using geokey container. For example, to run only geokey-dataimports tests:

docker-compose exec geokey python manage.py test geokey_dataimports

Update

Update the geokey-dataimports from PyPI:

pip install -U geokey-dataimports

Migrate the new models into the database:

python manage.py migrate geokey_dataimports

Copy new static files:

python manage.py collectstatic

Test

Run tests:

python manage.py test geokey_dataimports

Check code coverage:

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geokey-dataimports-0.5.0.tar.gz (24.1 kB view details)

Uploaded Source

File details

Details for the file geokey-dataimports-0.5.0.tar.gz.

File metadata

  • Download URL: geokey-dataimports-0.5.0.tar.gz
  • Upload date:
  • Size: 24.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.6

File hashes

Hashes for geokey-dataimports-0.5.0.tar.gz
Algorithm Hash digest
SHA256 bf4e555033d1b874aa2a7881c734d4482481a3b38ea5569bcdf5be5dabc084c1
MD5 a717e72f398b4e9264df8a0250d35396
BLAKE2b-256 63295512e6e9547d007ae3ffa5c9ea08e52f11948d5c7d82f897d90f95e76fb0

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.5.0 This release

1 file

0.4.1

1 file

0.4.0

1 file

0.3.3

1 file

0.3.2

1 file

0.3.1

1 file

0.3.0

1 file

0.2.2

1 file

0.2.1

1 file

0.2.0

1 file

0.1.0

1 file

Supported by

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