Skip to main content

Visualization

Within Workbench

Outside of Workbench

Make a Map Tile Server in seconds

This example works best in Workbench

@fused.udf
def udf(
bounds: fused.types.Bounds,
path: str="s3://fused-asset/data/tiger/state/tl_rd22_us_state 1pct.parquet"
):
import geopandas as gpd

df = gpd.read_parquet(path)
df = df.cx[bounds[0]:bounds[2], bounds[1]:bounds[3]]
df['area'] = df['geometry'].area.round(2)
return df

Edit the tile coordinates to use {z}/{x}/{y}:

https://.../run/tiles/{z}/{x}/{y}?dtype_out_vector=parquet

Connect this anywhere to deliver a map tile server!