Skip to content

A minimal self hosted tile explorer for osm data.

Notifications You must be signed in to change notification settings

Aveygo/PyOSMRenderer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyOSMRenderer

Aveygo - PyOSMRenderer stars - PyOSMRendererPython 3.9.9

A minimal self hosted tile explorer for osm data.

Steps to run

  1. Download python/pip and run
pip3 install osmium Pillow numpy 
  1. Download project files here
  2. Download your osm data from https://download.geofabrik.de/ (anything .osm.pbf) and place in root folder next to build_database.py
  3. Build the database
python3 build_database.py <the .osm.pbf file>
  1. Run the server
python3 api.py
  1. Open the browser and go to http://localhost:8000

Emphasis on the minimal

This is a very bare bones approach to the task of mapping and was meant for dipping my toes into rtrees, cairo, caching, and other performance guides. I highly recommended osmnx for a more fleshed out project. The sydney_sample.png was rendered with tile resolution=1024 and query_limit=10000 for a more detailed result.

About

A minimal self hosted tile explorer for osm data.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published