Giter Site home page Giter Site logo

openstreetmap-heatmap's Introduction

Openstreetmap Heatmap

This project is a visualization of OpenStreetMap data with Blender and Python as a 3D barplot. It creates an occurence heatmap of all points that are collected within a country with a certain tag.

OpenStreetMap (OSM) has a vast geospatial data set containing various tags and attributes besides the geometry. By using the Overpass API we can query for specific tags, filter specific areas and various other kinds of queries. In this case we want to query for tags within the boundary of a country. We are using the two-letter country codes and filter for a single OSM tag across all available OSM elements. You can see the various Map Features to get a grasp of the variety.

DE_biergarten_animation

Requirements

In order to run this script you need to run

blender -b -P run_script.py

which runs the rendering in the background. You can also load run_script.py into Blender as a script and execute the program from there. You need to have the overpy package available in your Python distribution which is accessed by Blender. I described in this article how to use Anaconda in Blender, which is handy for installing and using additional python packages.

You can edit the settings within the render_osm_data.py under the # Settings part. The script can do both render frames of an animation (rotation around the barplot) or render a single frame. You can also load and save the points as a GeoJSON with the utils_osm.py script.

Gallery

All Biergarten in Germany

DE_biergarten

All Swiss Banks

CH_bank

All Pubs in Great Britain

GB_pub

openstreetmap-heatmap's People

Contributors

njanakiev avatar

Watchers

 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.