All Projects → trolleway → osmot

trolleway / osmot

Licence: Unlicense license
Preprocessor for make public transit maps from Openstreetmap data

Programming Languages

QML
638 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to osmot

Docker Osm
A docker compose project to setup an OSM PostGIS database with automatic updates from OSM periodically
Stars: ✭ 172 (+1128.57%)
Mutual labels:  openstreetmap, osm, postgis
Osm Python Tools
A library to access OpenStreetMap related services
Stars: ✭ 202 (+1342.86%)
Mutual labels:  openstreetmap, osm
planetiler
Flexible tool to build planet-scale vector tilesets from OpenStreetMap data fast
Stars: ✭ 823 (+5778.57%)
Mutual labels:  openstreetmap, osm
Contextily
Context geo-tiles in Python
Stars: ✭ 254 (+1714.29%)
Mutual labels:  openstreetmap, osm
pydriosm
PyDriosm: an open-source tool for downloading, reading and PostgreSQL-based I/O of OpenStreetMap data
Stars: ✭ 42 (+200%)
Mutual labels:  openstreetmap, osm
Osmdeepod
OSMDeepOD - OpenStreetMap (OSM) and Machine Learning (Deep Learning) based Object Detection from Aerial Imagery (Formerly also known as "OSM-Crosswalk-Detection").
Stars: ✭ 174 (+1142.86%)
Mutual labels:  openstreetmap, osm
Osmdata
R package for downloading OpenStreetMap data
Stars: ✭ 199 (+1321.43%)
Mutual labels:  openstreetmap, osm
qgis-maptiler-plugin
QGIS MapTiler Plugin: vector tiles, basemaps, geocoding, OSM, QuickMapServices
Stars: ✭ 73 (+421.43%)
Mutual labels:  openstreetmap, osm
equalstreetnames
Map visualizing the streetnames by gender : 50 cities in 11 countries
Stars: ✭ 64 (+357.14%)
Mutual labels:  openstreetmap, osm
OSMChina-NextOSM
A more modern, designed and easy-to-use UI designed for browsing OpenStreetMap.
Stars: ✭ 17 (+21.43%)
Mutual labels:  openstreetmap, osm
Atlas
OSM in memory
Stars: ✭ 172 (+1128.57%)
Mutual labels:  openstreetmap, osm
ohsome-quality-analyst
Data quality estimations for OpenStreetMap
Stars: ✭ 28 (+100%)
Mutual labels:  openstreetmap, osm
Aphotomanager
Manage local photos on Android: gallery, geotag with photomap, privacy, tags, find, sort, view, copy, send, ... .
Stars: ✭ 164 (+1071.43%)
Mutual labels:  openstreetmap, osm
fishfrymap
Fish Fry Map project repository
Stars: ✭ 14 (+0%)
Mutual labels:  openstreetmap, osm
Mimirsbrunn
Geocoding and reverse-geocoding (with OSM data)
Stars: ✭ 165 (+1078.57%)
Mutual labels:  openstreetmap, osm
Libosmscout
Libosmscout is a C++ library for offline map rendering, routing and location lookup based on OpenStreetMap data
Stars: ✭ 159 (+1035.71%)
Mutual labels:  openstreetmap, osm
Osm
General purpose library for reading, writing and working with OpenStreetMap data
Stars: ✭ 153 (+992.86%)
Mutual labels:  openstreetmap, osm
Awesome Openstreetmap
😎 Curated list of awesome OpenSteetMap projects
Stars: ✭ 157 (+1021.43%)
Mutual labels:  openstreetmap, osm
Graphhopper
Open source routing engine for OpenStreetMap. Use it as Java library or standalone web server.
Stars: ✭ 3,457 (+24592.86%)
Mutual labels:  public-transportation, openstreetmap
osmscout-sailfish
OSM Scout for Sailfish OS (offline maps and navigation)
Stars: ✭ 42 (+200%)
Mutual labels:  openstreetmap, osm

OSMOT

Script for processing OpenStreetMap data for generate a public transit map.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

What things you need to install the software

  1. PostGIS
  2. osm2pgsql
  3. python

Installing

git clone https://github.com/trolleway/osmot.git
cd osmot
pip install -r requirements.txt

Usage

  1. Create PostGIS database
createdb gis
psql -U username -d gis -c "CREATE EXTENSION postgis;"
  1. Prepare osm or pbf file with only needed routes.

Example query for http://overpass-query.eu

[out:xml][timeout:25];
(
  relation["route"="bus"]["ref"!="991"]["ref"!="804"]["ref"!="833"]["ref"!="349"]["ref"!="601"](55.5396,37.6666,55.5608,37.7576);
);
out body;
>;
out meta qt;
  1. Import osm dump to PostGIS database
osm2pgsql --create --slim --latlon --style d:\GIS\GIS\soft\default.style --database gis c:\Users\trolleway\Downloads\export.osm
  • --create - performs DROP CASCADE in database
  • --slim - save relation data
  • --latlon - store data in EPSG:4326. Optional
  • --style - need only at Windows
python osmot.py --user trolleway

Commandline attributes:

usage: osmot.py [-h] [--host HOST] [--database DATABASE] [--username USERNAME]
                [--password PASSWORD] [--reverse]

optional arguments:
  -h, --help           show this help message and exit
  --host HOST          Postgresql host (default: localhost)
  --database DATABASE  Postgresql database (default: gis)
  --username USERNAME  Postgresql username (default: gis)
  --password PASSWORD  Postgresql password (default: )
  --reverse            reverse routes (default: False)
  1. Connect to PostGIS database in QGIS, add to map new tables: routes_with_refs and terminals_export
  2. Load qml styles from /styles/qml

Terminals generalisation

before

after

before

after

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].