ST_GeomCollFromText
Introduction: Constructs a GeometryCollection from the WKT with the given SRID. If SRID is not provided then it defaults to 0. It returnsnull if the WKT is not a GEOMETRYCOLLECTION.
Format:
ST_GeomCollFromText (Wkt: String)
ST_GeomCollFromText (Wkt: String, srid: Integer)
SQL Example:
ST_GeomFromEWKB
Introduction: Construct a Geometry from EWKB string or Binary. This function is an alias of ST_GeomFromWKB. Format:ST_GeomFromEWKB (Wkb: String)
ST_GeomFromEWKB (Wkb: Binary)
SQL Example
ST_GeomFromEWKT
Introduction: Construct a Geometry from OGC Extended WKT Format:ST_GeomFromEWKT (EWkt: String)
SQL example:
ST_GeomFromGML
Introduction: Construct a Geometry from GML.This function only supports GML 1 and GML 2. GML 3 is not supported.
ST_GeomFromGML (gml: String)
SQL example:
ST_GeomFromGeoHash
Introduction: Create Geometry from geohash string and optional precision Format:ST_GeomFromGeoHash(geohash: String, precision: Integer)
SQL Example
ST_GeomFromGeoJSON
Introduction: Construct a Geometry from GeoJson Format:ST_GeomFromGeoJSON (GeoJson: String)
SQL Example
ST_GeomFromKML
Introduction: Construct a Geometry from KML. Format:ST_GeomFromKML (kml: String)
SQL example:
ST_GeomFromText
Introduction: Construct a Geometry from WKT. If SRID is not set, it defaults to 0 (unknown). Alias of ST_GeomFromWKT Format:ST_GeomFromText (Wkt: String)
ST_GeomFromText (Wkt: String, srid: Integer)
SQL Example
ST_GeomFromWKB
Introduction: Construct a Geometry from WKB string or Binary. This function also supports EWKB format. Format:ST_GeomFromWKB (Wkb: String)
ST_GeomFromWKB (Wkb: Binary)
SQL Example
ST_GeomFromWKT
Introduction: Construct a Geometry from WKT. If SRID is not set, it defaults to 0 (unknown). Format:ST_GeomFromWKT (Wkt: String)
ST_GeomFromWKT (Wkt: String, srid: Integer)
The optional srid parameter was added in v1.3.1
SQL Example
ST_GeometryFromText
Introduction: Construct a Geometry from WKT. If SRID is not set, it defaults to 0 (unknown). Alias of ST_GeomFromWKT Format:ST_GeometryFromText (Wkt: String)
ST_GeometryFromText (Wkt: String, srid: Integer)
SQL Example
ST_LineFromText
Introduction: Construct a Line from Wkt text Format:ST_LineFromText (Wkt: String)
SQL Example
ST_LineFromWKB
Introduction: Construct a LineString geometry from WKB string or Binary and an optional SRID. This function also supports EWKB format.Returns null if geometry is not of type LineString.
ST_LineFromWKB (Wkb: String)
ST_LineFromWKB (Wkb: Binary)
ST_LineFromWKB (Wkb: String, srid: Integer)
ST_LineFromWKB (Wkb: Binary, srid: Integer)
Example:
ST_LineStringFromText
Introduction: Construct a LineString from Text, delimited by Delimiter Format:ST_LineStringFromText (Text: String, Delimiter: Char)
SQL Example
ST_LinestringFromWKB
Introduction: Construct a LineString geometry from WKB string or Binary and an optional SRID. This function also supports EWKB format and it is an alias of ST_LineFromWKB.Returns null if geometry is not of type LineString.
ST_LinestringFromWKB (Wkb: String)
ST_LinestringFromWKB (Wkb: Binary)
ST_LinestringFromWKB (Wkb: String, srid: Integer)
ST_LinestringFromWKB (Wkb: Binary, srid: Integer)
Example:
ST_MakeEnvelope
Introduction: Construct a Polygon from MinX, MinY, MaxX, MaxY, and an optional SRID. Format:ST_MLineFromText
Introduction: Construct a MultiLineString from Wkt. If srid is not set, it defaults to 0 (unknown). Format:ST_MLineFromText (Wkt: String)
ST_MLineFromText (Wkt: String, srid: Integer)
SQL Example
ST_MPointFromText
Introduction: Constructs a MultiPoint from the WKT with the given SRID. If SRID is not provided then it defaults to 0. It returnsnull if the WKT is not a MULTIPOINT.
Format:
ST_MPointFromText (Wkt: String)
ST_MPointFromText (Wkt: String, srid: Integer)
SQL Example:
ST_MPolyFromText
Introduction: Construct a MultiPolygon from Wkt. If srid is not set, it defaults to 0 (unknown). Format:ST_MPolyFromText (Wkt: String)
ST_MPolyFromText (Wkt: String, srid: Integer)
SQL Example
ST_MakePoint
Introduction: Creates a 2D, 3D Z or 4D ZM Point geometry. Use ST_MakePointM to make points with XYM coordinates. Z and M values are optional. Format:ST_MakePoint (X: Double, Y: Double, Z: Double, M: Double)
Example:
ST_MakePointM
Introduction: Creates a point with X, Y, and M coordinate. Use ST_MakePoint to make points with XY, XYZ, or XYZM coordinates. Format:ST_MakePointM(x: Double, y: Double, m: Double)
Example:
ST_Point
Introduction: Construct a Point from X and Y Format:ST_Point (X: Double, Y: Double)
In v1.4.0 an optional Z parameter was removed to be more consistent with other spatial SQL implementations.
If you are upgrading from an older version of Sedona - please use ST_PointZ to create 3D points.
SQL Example
ST_PointFromGeoHash
Introduction: Generates a Point geometry representing the center of the GeoHash cell defined by the input string. Ifprecision is not specified, the full GeoHash precision is used. Providing a precision value limits the GeoHash characters used to determine the Point coordinates.
Format: ST_PointFromGeoHash(geoHash: String, precision: Integer)
SQL Example
ST_PointFromText
Introduction: Construct a Point from Text, delimited by Delimiter Format:ST_PointFromText (Text: String, Delimiter: Char)
SQL Example
ST_PointFromWKB
Introduction: Construct a Point geometry from WKB string or Binary and an optional SRID. This function also supports EWKB format.Returns null if geometry is not of type Point.
ST_PointFromWKB (Wkb: String)
ST_PointFromWKB (Wkb: Binary)
ST_PointFromWKB (Wkb: String, srid: Integer)
ST_PointFromWKB (Wkb: Binary, srid: Integer)
Example:
ST_PointM
Introduction: Construct a Point from X, Y and M and an optional srid. If srid is not set, it defaults to 0 (unknown). Must use ST_AsEWKT function to print the Z and M coordinates. Format:ST_PointM (X: Double, Y: Double, M: Double)
ST_PointM (X: Double, Y: Double, M: Double, srid: Integer)
Example:
ST_PointZ
Introduction: Construct a Point from X, Y and Z and an optional srid. If srid is not set, it defaults to 0 (unknown). Must use ST_AsEWKT function to print the Z coordinate. Format:ST_PointZ (X: Double, Y: Double, Z: Double)
ST_PointZ (X: Double, Y: Double, Z: Double, srid: Integer)
SQL Example
ST_PointZM
Introduction: Construct a Point from X, Y, Z, M and an optional srid. If srid is not set, it defaults to 0 (unknown). Must use ST_AsEWKT function to print the Z and M coordinates. Format:ST_PointZM (X: Double, Y: Double, Z: Double, M: Double)
ST_PointZM (X: Double, Y: Double, Z: Double, M: Double, srid: Integer)
SQL Example
ST_PolygonFromEnvelope
Introduction: Construct a Polygon from MinX, MinY, MaxX, MaxY. Format:ST_PolygonFromEnvelope (MinX: Double, MinY: Double, MaxX: Double, MaxY: Double)
SQL Example
ST_PolygonFromText
Introduction: Construct a Polygon from Text, delimited by Delimiter. Path must be closed Format:ST_PolygonFromText (Text: String, Delimiter: Char)
SQL Example

