Guide¶
Browse the catalog¶
Dataset metadata and samples¶
ds = tl.dataset("nl-domino-poi")
meta = ds.metadata() # DatasetSummary
sample = ds.sample("geojson") # free preview rows (csv/json/geojson/kml)
Query features in an area (spatial, paged)¶
items() addresses the collection by slug directly — the OGC collectionId
is the dataset slug, so there is no metadata round-trip.
Stream every feature, paging transparently:
Pull a whole dataset (bulk)¶
fc = tl.dataset("nl-domino-poi").to_geojson() # dict (FeatureCollection)
tl.dataset("nl-domino-poi").download("dominos-nl.geojson", format="geojson")
download() streams to a temp file and atomically renames, so an interrupted
transfer never leaves a truncated file at the destination.
GeoPandas¶
With the geo extra installed:
Async¶
AsyncClient mirrors the sync surface — metadata, sample, to_geojson,
download, to_geodataframe, items, and iter_items are all awaitable: