You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mirror tutorial changes to address Kyle Barron's feedback:
- Replace the bespoke quadkey() helper with mercantile.tile +
mercantile.quadkey; pass the string quadkey to the STAC search
(preserves leading zeros).
- Swap dask_geopandas for the canonical deltalake + geopandas pattern
used by the existing ms-buildings example notebook, building
storage_options with sas_token from the asset's credential field.
- Update install list to match: drop dask-geopandas, add deltalake,
geopandas, mercantile; keep adlfs for Azure access.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip is available: \u001b[0m\u001b[31;49m25.0.1\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m26.1.2\u001b[0m\r\n",
50
-
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpython -m pip install --upgrade pip\u001b[0m\r\n"
51
-
]
52
-
},
53
-
{
54
-
"name": "stdout",
55
-
"output_type": "stream",
56
-
"text": [
57
-
"Note: you may need to restart the kernel to use updated packages.\n"
"## Find the building-footprints partition for Portland\n",
106
-
"\n",
107
-
"The `ms-buildings` collection is partitioned by [quadkey](https://learn.microsoft.com/en-us/bingmaps/articles/bing-maps-tile-system). Compute the zoom-9 quadkey for a Portland coordinate and fetch the STAC item whose partition covers it.\n",
108
-
"\n",
109
-
"**Expected result:** one matching item and its GeoParquet `data` asset."
110
-
]
85
+
"source": "## Find the building-footprints partition for Portland\n\nThe `ms-buildings` collection is partitioned by [quadkey](https://learn.microsoft.com/en-us/bingmaps/articles/bing-maps-tile-system). Use `mercantile` to convert a Portland coordinate to a zoom-9 quadkey, then fetch the STAC item whose partition covers it.\n\n**Expected result:** one matching item and its Delta Table `data` asset."
"The asset is a Delta/Parquet partition on Azure Blob. `dask_geopandas.read_parquet` reads it with the asset's `table:storage_options` (account + SAS), then `.compute()` materializes a GeoDataFrame. Clip to the Portland metro for a focused view.\n",
171
-
"\n",
172
-
"**Expected result:** a few hundred thousand building polygons."
173
-
]
106
+
"source": "## Load the footprints into a GeoDataFrame\n\nThe asset is a Delta Table partition on Azure Blob. Open it with `deltalake`, enumerate the parquet files in the partition, then read each one with `geopandas`. Clip to the Portland metro for a focused view.\n\n**Expected result:** a few hundred thousand building polygons."
0 commit comments