Skip to main content

from_pgraster

Convert a PostGIS HEX String into a dictionary.

def from_pgraster(
data: str
) - > dict

Convert a PostGIS HEX String into a dictionary.

Parameters

NameTypeDescription
datastrThe PostGIS HEX-encoded string representing the raster data to be parsed.

Returns

TypeDescription
dictA dictionary containing the raster metadata (SRID, dimensions, origin, scale, skew, datatype) and a list of band data buffers.