from ibis import _
= ibis.duckdb.connect(extensions=["spatial"])
con
= (con
city "/vsicurl/https://dsl.richmond.edu/panorama/redlining/static/mappinginequality.gpkg")
.read_geo(filter(_.city == "New Haven")
.
.execute() )
In this section we take a look at adding our computed NDVI metrics to our map, along with methods for publishing our maps as interactive web applications.
import leafmap.maplibregl as leafmap
= leafmap.Map(style = "voyager")
m "https://github.com/espm-157/static-maps/raw/refs/heads/main/ndvi.tif", colormap_name = "greens", nodata=1)
m.add_cog_layer("fill", paint = { "fill-color": ["get", "fill"], "fill-opacity": 0.8})
m.add_gdf(city, m