Skip to main content

Module io

Module io 

Source
Expand description

I/O and serialization functions.

ST_AsText, ST_AsEWKT, ST_AsBinary, ST_AsEWKB, ST_AsGeoJSON, ST_GeomFromText, ST_GeomFromWKB, ST_GeomFromEWKB, ST_GeomFromGeoJSON

Functionsยง

as_binary
Convert an EWKB blob to ISO WKB bytes (strips SRID).
as_ewkb
Return the EWKB blob as-is (identity for well-formed input).
as_ewkt
Convert an EWKB blob to EWKT text (SRID=n;WKT).
as_geojson
Convert an EWKB blob to GeoJSON text.
as_text
Convert an EWKB blob to WKT text.
geom_from_ewkb
Validate and pass through an EWKB blob without rewriting bytes.
geom_from_geojson
Parse a GeoJSON string into an EWKB blob (SRID = 4326 by default, per spec).
geom_from_text
Parse WKT (optionally with an SRID) into an EWKB blob.
geom_from_wkb
Parse ISO WKB bytes (optionally override SRID) into an EWKB blob.