here.platform.schema.geojson_parser module#

HERE Platform GeoJson Parser module

class here.platform.schema.geojson_parser.GeoJsonParser(schema_pkg_file: str | Path | BytesIO)[source]#

Bases: JsonParser

A class for parsing GeoJson data of a catalog layer partition.

parse_message(message: bytes) Message | dict[source]#

Parse a message and returns the corresponding partition class instance.

Parameters:

message – message received as blob

Raises:

ValueError – if the decoded data doesn’t comply with geojson standards.

Returns:

parsed message

serialize_bytes(data: Message | dict) bytes[source]#

Parse a GeoJson message and returns the bytes.

Parameters:

data – GeoJson message

Returns:

bytes