Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Geographic data visualizer backend for terra-visu

Project description

Terra Layer

This django applications aims to provide an API to connect django_geosource to django_geodata. It serve an API that provides informations wanted by a frontend to configure data rendering.


You need the last version of docker and docker-compose to execute a dev instance.

Set configuration

In Django settings, you must set the different views provided to fronted, like this:

    "accessToken": "<your mapbox access token>",
    "backgroundStyle": "<background style file>",
    'center': [-0.655, 43.141], # Default view center
    'zoom': 7.7, # Default zoom
    'maxZoom': 19.9,
    'minZoom': 5,
    'fitBounds': { # Default bounding box
        'coordinates': [
            [-4.850, 46.776],
            [-0.551, 48.886]

To start a dev instance

Define settings you wants in test_terralayer django project.

docker-compose up

First start should failed as the database need to be initialized. Just launch the same command twice.

Then initialize the database:

docker-compose run web /code/venv/bin/python3 /code/src/ migrate

You can now edit your code. A django runserver is launched internally so the this is an autoreload server.

You can access to the api on http://localhost:8000/api/


To run test suite, just launch:

docker-compose run web /code/venv/bin/python3 /code/src/ test


You must use factoryboy factories to develop your tests. The factories are available at terra_layer/tests/factories

0.3.7 (2019-11-12)


  • slug can now be modified and is optionnal


  • Add default layer activation support

0.3.6 (2019-11-07)


  • Fix geolayer urls double dash

0.3.5 (2019-11-06)


  • Set correct permission classes to viewsets

0.3.4 (2019-11-06)


  • Fix geostore namespace that is not necessary anymore

0.3.3 (2019-11-06)


  • Add Manifest

0.3.2 (2019-11-05)


  • Fix url namespace of geostore

0.3.1 (2019-11-05)


  • Integrate terra permissions mecanism

0.3.0 (2019-10-18)


  • First release

Project details

Download files

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

Files for terra-layer, version 0.3.7
Filename, size File type Python version Upload date Hashes
Filename, size terra-layer-0.3.7.tar.gz (16.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page