Giter Club home page Giter Club logo

osm-strassenraumkarte-generator's Introduction

Straßenraumkarte Generator

This project contains a script to automate map data rendering based on Straßenraumkarte Neukölln, simplifying things a bit and making it all suitable for locations other than Neukölln.

Usage

Prerequisites:

Then:

  • Clone this repository, with submodules, e.g. git clone --recurse-submodules https://github.com/mikedld/osm-strassenraumkarte-generator
  • Adjust config.json and index.html.tpl files to your liking
  • Run the script, e.g. ./generate.py Lisboa, or simply ./generate.py (without arguments) to list available locations

Generated map tiles and index.html will be placed under output/ subdirectory.

Configuration

config.json file contains a map of locations to their configuration, e.g. in its simplest form

{
  "locations": {
    "foo": {
      "bbox": [1, 2, 3, 4],
      "crs": "EPSG:25829"
    }
  }
}

Where

  • foo — location name, passed to the script via command line and injected into generated index.html file (if referenced in the template)
    • bbox — array of 4 floating-point numbers, two pairs of coordinates in EPSG:4326 (a.k.a. WGS 84), i.e. [lat1, lon1, lat2, lon2]
    • crs — UTM CRS suitable for the bbox region
    • settings — optional map of overrides in case a particular step fails and is hard to fix
    • excludeLayers — optional list of layers to exclude from rendering, in case rendering fails or takes a long time

Inside of generate.py script file there's a number of generate_* variables that control whether a particular stage needs to be executed or not. There are setting variables in street_parking.py, post_processing.py, and tile_writer.py files as well, with some of them configurable in generate.py file via environment variables.

Copyright

This project is made available under GNU GPL version 3. Other projects included as submodules have their own licenses.

osm-strassenraumkarte-generator's People

Contributors

mikedld avatar

Stargazers

 avatar  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.