Skip to content
Generate transit maps from OSM data in docker
QML Python
Branch: master
Clone or download
Latest commit 0be0011 Feb 2, 2020
Type Name Latest commit message Commit time
Failed to load latest commit information.
core в базовую карту добавлена выкачка океана Feb 2, 2020
map_styles map styles Jan 19, 2020
qgis_project_templates map 4000x4000 Feb 2, 2020
scripts map 4000x4000 Feb 2, 2020
.gitignore pull osmot Jan 26, 2020
.gitmodules pull osmot Jan 26, 2020
LICENSE Initial commit Jan 19, 2020 Update Jan 31, 2020


Generate transit maps from OSM data in docker

Table of Contents

About The Project

Product Name Screen Shot

There are many great public transport routing services online, however, I stil need static maps of public transit lines. I want to create a automatic process for generate static maps from OpenStreetMap data, with simply running routine.

Here's why:

  • Changes of public transport lines become quickly, but transit authorities news resourses do not provide up-to-date maps, only text descriptions.
  • Public transport routing services solve one problem: how to get to specific address. A map of all lines solve diffirent problem: where i can go from some point.
  • Old maps may disappear from Internet, due to closed licensing, and no one can copy it. A maps generated from OpenStreetMap keep open license, and can be reproduced to many resources.
  • Public Transport lines information in OSM keeps from 2010-s, so historical map generation already possible.

A data features, needed to orientation by static public transport map is

  1. Geometry of lines, with route refs
  2. Places of terminus, with route refs and names.
  3. Directions for one-line lines.
  4. Interval information, or marking of low interval lines.
  5. Date of map source.
  6. Good looking basemap withouth distracting map features, like "boundary of national parks".

This scripts provive points 1, 2, 3, calculating from OSM data. And also 5 and 6.

Built With

This section should list any major frameworks that you built your project using. Leave any add-ons/plugins for the acknowledgements section. Here are a few examples.

Getting Started


This repository uses submodules, so you need to

git clone --recurse-submodules 


This is a docker container. It uses for input a bbox, filter string and map style, and generate a png image file.

It consists from there scripts:

  • - Takes a url or pbf file, poly file, filter string, and filtering it to basemap.pbf and pt_data.pbf. Use osmfilter.
  • - Download and prepare historical dump for dump_prepare. May will be run outside container, due to huge size of dumps. Use osmupdate and osmfilter.
  • - Generate image of basemap for bbox. Importing basemap.pbf to postgis, create QGIS Server WMS, make png from WMS.
  • - Generate image of public transport map for

Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.

For more examples, please refer to the Documentation




Distributed under the MIT License. See LICENSE for more information.


Your Name - @your_twitter -

Project Link:


You can’t perform that action at this time.