Skip to main content

MapInfo MIF Format

Read MapInfo Interchange Format (MIF/MID) vector features via Fiona as GeoJSON-like Feature dicts.

Overview

PropertyValue
Format idmif
ClassMapInfoIterable
Extensions.mif (companion .mid handled by the driver)
ReadYes
WriteNo
Extrageospatial (fiona)
Maturityexperimental

Record shape

{
"type": "Feature",
"id": "...",
"properties": {...},
"geometry": {"type": "Polygon", "coordinates": [...]},
}

Requires a filename (not a stream). Uses Fiona's MapInfo File driver with streaming feature iteration.

Usage

from iterable import open_iterable

with open_iterable("parcels.mif", format="mif") as source:
for feature in source:
print(feature["id"], feature["geometry"]["type"], feature["properties"])

Install with pip install iterabledata[geospatial].

See also