itacart.serialization.geometry_blob.validate_geometry

itacart.serialization.geometry_blob.validate_geometry(blob)[source]

Validate blob structure, raising on the first problem found.

Parameters:

blob (bytes) – The binary blob.

Raises:

MalformedBlobError – With a message identifying the failure.

Return type:

None

Example

>>> blob = encode_geometry([["NE(0625/0451)"]], "POINT", resolution=1)
>>> validate_geometry(blob) is None
True