Git Product home page Git Product logo

3dcityreconstructionfromosm's Introduction

3D City Reconstruction From OpenStreetMap Data

The developed application is an open-source tool, based on Yocto/GL library, suitable to reconstruct cities at scale from OpenStreetMap data in hundreds of seconds. Additionally, Earcut (for triangulation) and JSON (for parsing tags from GeoJSON files) are employed in the system.

Prerequisites

The application requires a C++17 compiler:

  • OsX (Xcode >= 11)
  • Windows (MSVC 2019)
  • Linux (gcc >= 9, clang >= 9)

Getting started

Installation

  • Clone this repository:
git clone https://github.com/sarettak/3DCityReconstructionFromOSM
cd 3DCityReconstructionFromOSM

Compilation

Compile the code:

cd scripts/build.sh

Creating the city

Launch the application:

./bin/ycityproc ./city/cities_geojson/name -o ./tests/name/name.json

in which:

  • ./city/cities_geojson/name specifies the path to the GeoJSON file(s) of the desired city to reconstruct (identified by name)
  • ./tests/name/name.json defines the path for saving the scene in a format understandable by Yocto/GL library

Example

./bin/ycityproc ./city/cities_geojson/berlin -o ./tests/berlin/berlin.json

Visualizing the city

The view of the reconstructed 3D city reconstructed is displayed in the GUI and saved as a .png image by running the following command:

./bin/ysceneitraces tests/name/name.json -o name.png   

in which:

  • ./tests/name/name.json specifies the path to the scene of the city (identified by name) in a format understandable by Yocto/GL library
  • name.png assigns the name name to the image representing the generated city

Example

./bin/ysceneitraces tests/berlin/berlin.json -o berlin.png  

Reconstructed cities

Currently, the following cities can be directly visualized in the GUI without creating them from scratch:

  • Amsterdam
  • London
  • Paris
  • Rome
  • Tokyo

However, other cities of interest can be reconstructed by downloading the GeoJSON data information of the desired area through Overpass Turbo and positioning the file(s) in a dedicated folder at the path city/cities_geojson/

Some results

Amsterdam

Berlin

London

Rome

Citation

If you are using this code in your project or research, please cite:

@inproceedings {10.2312:stag.20211474,
booktitle = {Smart Tools and Apps for Graphics - Eurographics Italian Chapter Conference},
editor = {Frosini, Patrizio and Giorgi, Daniela and Melzi, Simone and Rodolà, Emanuele},
title = {{3D City Reconstruction from OpenStreetMap Data}},
author = {Kaszuba, Sara and Pellacini, Fabio},
year = {2021},
publisher = {The Eurographics Association},
ISSN = {2617-4855},
ISBN = {978-3-03868-165-6},
DOI = {10.2312/stag.20211474}
}

Authors

Sara Kaszuba & Fabio Pellacini

3dcityreconstructionfromosm's People

Contributors

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