Skip to content

97 overture data

image image image

Download Overture Maps Data

Uncomment the following line to install leafmap if needed.

1
# %pip install -U leafmap overturemaps
1
import leafmap

Create an interactive map.

1
2
3
m = leafmap.Map(center=[36.120725, -115.203795], zoom=17)
m.add_basemap("SATELLITE")
m

Draw a rectangle on the map to download the data within the rectangle.

1
2
3
4
if m.user_roi is not None:
    bbox = m.user_roi_coords()
else:
    bbox = [-115.2081, 36.119, -115.1994, 36.1226]

Download Overature Maps building data.

1
2
3
4
5
columns = ["id", "height", "geometry"]
output = "buildings.geojson"
buildings_gdf = leafmap.get_overture_data(
    "building", bbox=bbox, columns=columns, output=output
)
1
2
3
m = leafmap.Map(center=[36.120725, -115.203795], zoom=17)
m.add_basemap("SATELLITE")
m.add_gdf(buildings_gdf, layer_name="Buildings")

Download Overature Maps transportation data.

1
2
3
4
5
output = "roads.geojson"
columns = ["id", "subtype", "class", "geometry"]
roads_gdf = leafmap.get_overture_data(
    "segment", bbox=bbox, columns=columns, output=output
)
1
2
m.add_gdf(roads_gdf, layer_name="Roads", style={"color": "red", "weight": 2})
m

The overture maps data type can be one of the following:

address|building|building_part|division|division_area|division_boundary|place|segment|connector|infrastructure|land|land_cover|land_use|water

image