Class: module:org/locationtech/jts/io/WKTReader

module:org/locationtech/jts/io/WKTReader(geometryFactory)

new module:org/locationtech/jts/io/WKTReader(geometryFactory)

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.

Parameters:
Name Type Description
geometryFactory GeometryFactory
Source:

Methods

read(wkt) → {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
Geometry