97 overture data

Download Overture Maps Data
Uncomment the following line to install leafmap if needed.
| # %pip install -U leafmap overturemaps
|
Create an interactive map.
| 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.
| 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.
| columns = ["id", "height", "geometry"]
output = "buildings.geojson"
buildings_gdf = leafmap.get_overture_data(
"building", bbox=bbox, columns=columns, output=output
)
|
| 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.
| output = "roads.geojson"
columns = ["id", "subtype", "class", "geometry"]
roads_gdf = leafmap.get_overture_data(
"segment", bbox=bbox, columns=columns, output=output
)
|
| 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
