itacart.serialization.geometry_blob.read_geometry_type
- itacart.serialization.geometry_blob.read_geometry_type(blob)[source]
Read the OGC SFA type from the header without full decoding.
- Parameters:
blob (
bytes) – The binary blob.- Return type:
- Returns:
The geometry type name.
- Raises:
MalformedBlobError – If the header is unreadable.
Example
>>> blob = encode_geometry([["NE(0625/0451)"]], "POINT", resolution=1) >>> read_geometry_type(blob) 'POINT'