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