Geo.WKT

Converts to and from WKT and EWKT

point = Geo.WKT.decode("POINT(30 -90)")
Geo.Geometry[type: :point, coordinates: [30, -90], srid: nil]

Geo.WKT.encode(point)
"POINT(30 -90)"

point = Geo.WKT.decode("SRID=4326;POINT(30 -90)")
Geo.Geometry[type: :point, coordinates: [30, -90], srid: 4326]
Source

Summary

decode(wkt)

Takes a WKT string and returns a Geo.Geometry struct or list of Geo.Geometry

encode(geometry)

Takes a Geo.Geometry or list of Geo.Geometry and returns a WKT string

Functions

decode(wkt)

Takes a WKT string and returns a Geo.Geometry struct or list of Geo.Geometry

Source
encode(geometry)

Takes a Geo.Geometry or list of Geo.Geometry and returns a WKT string

Source