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

Tips on how to create constructing mannequin maps in Python

On this piece, I want to introduce you to the Python package deal referred to as PyDeck, which is a superb software to create 3D maps in Python. For example, I’ll use a 3D constructing mannequin information base masking town of Budapest.

All pictures had been created by the writer.

The information is sourced from the publicly obtainable Budapest Open Information Atlas, which you’ll entry right here. Whereas the positioning is in Hungarian, as soon as you discover the part ‘Épületmagasság’ and click on on the button beginning with ‘geojson’, you must be capable to obtain the geojson file, which is completely readable in English and with Python as properly.

Supply

After a fast obtain, let’s open the file and take a fast look:

# import geopandas 
import geopandas as gpd

# parse the constructing peak information set
gdf = gpd.read_file('epuletmagassag.geojson')
gdf.plot()
len(gdf)

The output of this cell:

Leave a Reply