Visualizing 3D Spatial Data With Pydeck | by Milan Janosov | Jul, 2024

Editor
1 Min Read


How to create building model maps in Python

In this piece, I would like to introduce you to the Python package called PyDeck, which is a great tool to create 3D maps in Python. As an example, I will use a 3D building model data base covering the city of Budapest.

All images were created by the author.

The data is sourced from the publicly available Budapest Open Data Atlas, which you may access here. While the site is in Hungarian, once you find the section ‘Épületmagasság’ and click on the button starting with ‘geojson’, you should be able to download the geojson file, which is perfectly readable in English and with Python as well.

Source

After a quick download, let’s open the file and take a quick look:

# import geopandas 
import geopandas as gpd

# parse the building height data set
gdf = gpd.read_file('epuletmagassag.geojson')
gdf.plot()
len(gdf)

The output of this cell:

Share this Article
Please enter CoinGecko Free Api Key to get this plugin works.