Code Monkey home page Code Monkey logo

prettyosmrenderer's Introduction

PrettyOSMRenderer

Requirements

Usage

Two tools are provided:

For generating high resolution maps:

The generate_map.py program is used to generate high resolution maps of an area. See generate_map.py --help for addition help:

usage: generate_map.py [-h] [--place PLACE] [--radius RADIUS] [--palette_file PALETTE_FILE] [--palette_names PALETTE_NAMES [PALETTE_NAMES ...]] [--export_dir EXPORT_DIR]

options:
  -h, --help            show this help message and exit
  --place PLACE         The place to generate the map for
  --radius RADIUS       Radius around the point to generate
  --palette_file PALETTE_FILE
                        Path to a json file containing colour palettes
  --palette_names PALETTE_NAMES [PALETTE_NAMES ...]
                        Names of the palettes to load from the palette_file
  --export_dir EXPORT_DIR
                        Path to a directory in which to place the generated maps

For formatting high resolution maps and adding nice metadata:

The add_text.py program is used to modify high resolution maps of an area, adding a border as well as the mapped place name. This tool also generated a lower resolution image (downscaled to a maximum width/height of 1920px) which is useful for sharing online. See add_text.py --help for addition help:

usage: add_text.py [-h] --image IMAGE [IMAGE ...] [--palette_file PALETTE_FILE] [--palette PALETTE] [--export_dir EXPORT_DIR]

options:
  -h, --help            show this help message and exit
  --image IMAGE [IMAGE ...]
                        Path to the images to process
  --palette_file PALETTE_FILE
                        Path to a json file containing colour palettes
  --palette PALETTE     Names of the palette to load from the palette_file
  --export_dir EXPORT_DIR
                        Path to a directory in which to place the generated maps

Result

Formatted map of Grenoble using the One Dark colour scheme:

Map of Grenoble using the One Dark colour scheme

prettyosmrenderer's People

Contributors

antoinenrico avatar dylan-robins 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.