Skip to main content

KMZ Format

Read KMZ archives (ZIP containing KML) as GeoJSON-like Placemark features.

Overview

PropertyValue
Format idkmz
ClassKMZIterable
Extensions.kmz
ReadYes
WriteNo
Extrageospatial (requires lxml)
Maturitystable

Record shape

Same GeoJSON-like features as KML (type, geometry, properties). Placemarks without geometry are skipped. totals() returns the feature count.

Usage

from iterable import open_iterable

with open_iterable("places.kmz") as source:
for feature in source:
print(feature["geometry"], feature.get("properties"))

Install with pip install iterabledata[geospatial] (parsing also needs lxml, e.g. pip install iterabledata[xml]).

See also