Class: WKTReader

jsts.io.WKTReader

new WKTReader()

Converts a geometry in Well-Known Text format to a Geometry.

WKTReader supports extracting Geometry objects from either Readers or Strings. This allows it to function as a parser to read Geometry objects from text blocks embedded in other data formats (e.g. XML).

A WKTReader is parameterized by a GeometryFactory, to allow it to create Geometry objects of the appropriate implementation. In particular, the GeometryFactory determines the PrecisionModel and SRID that is used.

Source:

Methods

read(wkt) → {jsts.geom.Geometry}

Reads a Well-Known Text representation of a Geometry
Parameters:
Name Type Description
wkt string a string (see the OpenGIS Simple Features Specification).
Source:
Returns:
a Geometry read from string.
Type
jsts.geom.Geometry