Coder Social home page Coder Social logo

territoriummapserver's Introduction

TerritoriumMapServer

Requirements

Workflow

Copy the file .env.example to .env and adjust to your needs.

cp ./frontend/.env.example ./frontend/.env
mkdir exchange
mkdir data
mkdir geodata
mkdir files
mkdir static
docker-compose run geodb

Copy project.mml from openstreetmap-carto or openstreetmap-carto-de to ./exchange and adjust if necessary.

docker-compose -f docker-compose.yml -f docker-compose.import.yml run style
docker-compose -f docker-compose.yml -f docker-compose.import.yml run shapefiles
cd ./exchange/data/
wget https://tile.openstreetmap.de/shapefiles/river-polygons-reduced-3857.zip
unzip river-polygons-reduced-3857.zip
wget https://tile.openstreetmap.de/shapefiles/lakes-polygons-reduced-3857.zip
unzip lakes-polygons-reduced-3857.zip
wget https://tile.openstreetmap.de/shapefiles/ocean-polygons-reduced-3857.zip
unzip ocean-polygons-reduced-3857.zip
cd ../..

Download pbf file and place in ./exchange. Adjust in ./frontend/.env environment variable OSM2PGSQL_DATAFILE accordingly.

Provide key.pem and crt.pem files in ./nginx/certs/

Then run

docker-compose -f docker-compose.yml -f docker-compose.import.yml run import
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d --build
docker-compose -f docker-compose.yml -f docker-compose.prod.yml exec frontend python manage.py createsuperuser

territoriummapserver's People

Contributors

dependabot[bot] avatar zigellsn avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.