Skip to content

XCSoar/mapgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

87dada4 · Jan 2, 2025
Oct 23, 2024
Feb 20, 2023
Mar 21, 2023
Apr 14, 2022
Jan 29, 2024
Nov 2, 2021
Nov 8, 2021
Oct 14, 2024
Feb 20, 2023
Aug 27, 2011
Feb 6, 2023
Feb 20, 2023
Jan 2, 2025
Apr 14, 2022
Jun 30, 2022

Repository files navigation

Map generator for XCSoar

Codacy Badge

This generates maps in the xcm format for XCSoar a tactical Gliding computer.

The Maps are layered out of a multitude of sources:

  • terrain SRTM
  • topology VMAP0
  • Roads and Towns OSM
  • Waypoints CUP format
  • Airspaces OPENAIR format

Deployment and Development

Frontend

The frontend container contains the cherrypy based service and an nginx based reverse proxy for exposing the mapgen on port 9090 Both processes in the frontend container are started by supervisord.

Frontend produces job files that are put into a shared volume

/opt/mapgen/jobs/<jobid>.queued

Worker

This is the actual map builder, that takes the queued jobs in /opt/mapgen/jobs/jobid and starts processing all the *.queued jobs.

Volumes

These are named volumes inside your docker service.

/opt/mapgen/jobs:

This is the job directory where all jobs get stored

/opt/mapgen/data:

This directory caches all the data from the data repository. WARNING: This volume can take up a lot of space (100GB).

Ports

Port 9090

Build Variables

The Following build variables can be set during build (optional):

  1. GITURL: The git url for the mapgen sources
  2. GITBRANCH: The branch name

Building

in the current directory:

docker-compose build

or with options:

docker-compose build \
--build-arg=GITURL=https://github.com/myuser/mapgen/mapgen.git \
--build-arg=GITBRANCH=myfeature

Starting

docker-compose up -d