Geobuf is a compact binary geospatial format for lossless compression of GeoJSON. Version 2.0.1 is available on PyPI, with infrequent releases.
pip install geobufNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Encode a GeoJSON object to Geobuf binary and decode it back to a dictionary.
Ensure both encoder and decoder use the same major version. Re-encode any persistent data when upgrading.
After decoding, use a library like `geojson` or `shapely.geometry.shape` to reconstruct GeoJSON objects.
Validate input is valid GeoJSON before encoding.
Use `from geobuf import Encoder` instead.
Access dictionary keys directly or convert to GeoJSON using `geojson.Feature(decoded)` if needed.
No dependency data recorded yet.