StoatPower/elm-wkt/1.0.4

NOTE: this package is not compatible with Elm 0.19.1

WellKnown

Parse and unparse Well-known Text (WKT) strings to and from Elm Geometry types from elm-geojson.

Supported Geometries include POINT, MULTIPOINT, LINESTRING, MULTILINESTRING, POLYGON, MULTIPOLYGON, and GEOMETRYCOLLECTION.

#Read

read : String -> Result String Geometry

Attempt to read a WKT string and parse it into a Geometry type from elm-geojson.

#Write

write : Geometry -> String

Write a Geometry type from elm-geojson to a String, formatted as a WKT string.