Skip to main content

MVT Format

Read Mapbox Vector Tiles (.mvt / .pbf) as flattened layer features.

Overview

PropertyValue
Format idmvt (alias pbf)
ClassMVTIterable
Extensions.mvt, .pbf
ReadYes
WriteNo
Extramvt (mapbox-vector-tile)
Maturitystable

Record shape

{
"layer": "roads",
"geometry": {...},
"properties": {"name": "Main St"},
"type": 3,
"id": 42,
}

totals() returns the feature count across layers. The tile is decoded in memory.

Usage

from iterable import open_iterable

with open_iterable("tile.mvt") as source:
for feat in source:
print(feat["layer"], feat["properties"])

Install with pip install iterabledata[mvt].

See also