Analytics Toolbox for Databricks

Analytics Toolbox for Databricks

Geometry Cast

st_castToLineString

LineString st_castToLineString(Geometry g)

Casts Geometry g to a LineString.

st_castToPoint

Point st_castToPoint(Geometry g)

Casts Geometry g to a Point.

st_castToPolygon

Polygon st_castToPolygon(Geometry g)

Casts Geometry g to a Polygon.

st_castToGeometry

Geometry st_castToGeometry(Geometry g)

Casts Geometry subclass g to a Geometry. This can be necessary e.g. when storing the output of st_makePoint as a Geometry in a case class.

st_byteArray

Array[Byte] st_byteArray(String s)

Encodes string s into an array of bytes using the UTF-8 charset.