File size: 5,283 Bytes
b889a15
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dea5b15
 
b889a15
5a85276
 
b889a15
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
license: other
license_name: mixed-cc-by-sa-4.0-odbl-cdla
license_link: https://huggingface.co/datasets/Rootkit29/spacenet-speedrun-map-data#licenses
pretty_name: SpaceNet Speedrun cloud-native map data
tags:
- geospatial
- remote-sensing
- cloud-native
- geoparquet
- cog
- pmtiles
- spacenet
- buildings
- roads
size_categories:
- 1M<n<10M
---

# SpaceNet Speedrun: cloud-native map data

Everything behind the **[SpaceNet cloud-native map](https://huggingface.co/spaces/Rootkit29/spacenet-speedrun-map)**:
building footprints and road networks predicted by the [SpaceNet Speedrun](https://github.com/dlindenbaum/Spacenet-Speedrun)
models, the SpaceNet labels they were trained and tested on, 0.3 m WorldView-3 imagery, and Overture Maps buildings,
roads and places for the same areas.

The map has no server. The page reads `manifest.json`, then fetches only the byte ranges it needs from the files below
with HTTP range requests:
* **COG:** one tile per request.
* **GeoParquet:** the footer once, then one row group per request.
* **PMTiles:** one vector tile per request.

## Files

| Path | Format | What |
|---|---|---|
| `imagery/AOI_2_Vegas.tif` | COG (WebP, EPSG:3857) | Whole Las Vegas WorldView-3 strip at 0.30 m (z19), 8 overviews |
| `imagery/AOI_{3_Paris,4_Shanghai,5_Khartoum}/*_z12_{x}_{y}.tif` | COG (WebP, EPSG:3857) | Paris, Shanghai and Khartoum at 0.30 m: one COG per z12 Web Mercator tile that holds SpaceNet tiles (24 in all) |
| `imagery/AOI_*/*_overview.tif` | COG (WebP, EPSG:3857) | Each of those three whole strips at 2.4 m (z16) |
| `vectors/buildings_model.parquet` | GeoParquet 1.1 | Model footprints: the whole Vegas strip (157k), plus our held-out val chips in Paris, Shanghai and Khartoum |
| `vectors/roads_model.parquet` | GeoParquet 1.1 | Model road centre-lines: the whole Vegas strip (74.8k segments, 3,998 km, 5-model ensemble with road-end-aware extraction), plus the shared buildings + roads model on our SN3 / SN5 test tiles elsewhere, with per-tile APLS |
| `rasters/AOI_2_Vegas_road_prob.tif` | COG (WebP, EPSG:3857) | The road ensemble's probability over the whole Vegas strip at 2.4 m, coloured as a heatmap |
| `vectors/buildings_spacenet.parquet` | GeoParquet 1.1 | SpaceNet 2 building labels (train set), with this project's train / tune / val split |
| `vectors/roads_spacenet.parquet` | GeoParquet 1.1 | SpaceNet 3 and 5 road labels (road type, lanes, paved, speed) |
| `vectors/spacenet_tiles.parquet` | GeoParquet 1.1 | SN2 chips and SN3 / SN5 tiles with their split |
| `vectors/overture_{buildings,roads,places}.parquet` | GeoParquet 1.1 | Overture Maps (release 2026-11-18) over each strip: 2.7 M buildings, 537 k road and rail segments, 274 k places |
| `basemap/basemap.pmtiles` | PMTiles v3 | Protomaps basemap: world z0–6, the six cities to z15; with `fonts/` and `sprites/` |
| `manifest.json` | JSON | Index the map reads first: files, sizes, extents, footer sizes, city views |

**GeoParquet layout.**
* EPSG:4326, WKB geometry, a GeoParquet 1.1 `bbox` covering column.
* Rows sorted by city, then along a Hilbert curve.
* Row groups of 2–8 k rows that never cross a city boundary.
* Only the bbox columns carry statistics, so footers are 18–350 KB.
* Any GeoParquet reader can skip row groups by bounding box.

**COG layout.**
* GDAL `COG` driver with the GoogleMapsCompatible tiling scheme and 512 px tiles.
* WebP RGBA (outside the strip is transparent).
* The per-city 1–99 % stretch the models were trained on.

## Query it remotely

```python
import duckdb  # reads only the row groups that intersect the box
duckdb.sql("""
  SELECT count(*) FROM 'hf://datasets/Rootkit29/spacenet-speedrun-map-data/vectors/overture_buildings.parquet'
  WHERE bbox.xmin < 32.54 AND bbox.xmax > 32.52 AND bbox.ymin < 15.59 AND bbox.ymax > 15.57""")
```

```python
import geopandas as gpd
url = "https://huggingface.co/datasets/Rootkit29/spacenet-speedrun-map-data/resolve/main/vectors/buildings_model.parquet"
gdf = gpd.read_parquet(url, bbox=(-115.25, 36.18, -115.23, 36.20))
```

```python
import rasterio  # one COG tile per read
with rasterio.open("/vsicurl/https://huggingface.co/datasets/Rootkit29/spacenet-speedrun-map-data/resolve/main/imagery/AOI_2_Vegas.tif") as r:
    print(r.overviews(1))
```

## Licenses

| Content | Source | License |
|---|---|---|
| Imagery, SpaceNet labels, tiles | [SpaceNet](https://spacenet.ai) (Maxar, CosmiQ Works) on the AWS Registry of Open Data | CC BY-SA 4.0 |
| Model buildings and roads (derived from SpaceNet imagery) | [SpaceNet Speedrun](https://github.com/dlindenbaum/Spacenet-Speedrun) | CC BY-SA 4.0 |
| Overture buildings and roads | [Overture Maps Foundation](https://overturemaps.org) (incl. OpenStreetMap) | ODbL 1.0 (see Overture attribution) |
| Overture places | Overture Maps Foundation | CDLA Permissive 2.0 |
| Basemap tiles | [Protomaps](https://protomaps.com) build of OpenStreetMap | ODbL 1.0, © OpenStreetMap contributors |
| Fonts | Noto Sans (via protomaps/basemaps-assets) | SIL Open Font License 1.1 |

## Rebuild

The scripts are in [`scripts/map/`](https://github.com/dlindenbaum/Spacenet-Speedrun/tree/claude/gifted-albattani-3sziwv/scripts/map) of the
project repository. They cover the COGs, GeoParquet layers, basemap extract and manifest.