public class

WKTGeometryReader

extends Object
java.lang.Object
   ↳ com.carto.geometry.WKTGeometryReader

Class Overview

A reader for Well Known Text representation of the geometry.

Summary

Public Constructors
WKTGeometryReader()
Constructs a WKTGeometryReader object.
Public Methods
synchronized void delete()
Geometry readGeometry(String wkt)
Reads geometry from the specified WKT string.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public WKTGeometryReader ()

Constructs a WKTGeometryReader object.

Public Methods

public synchronized void delete ()

public Geometry readGeometry (String wkt)

Reads geometry from the specified WKT string.

Parameters
wkt The WKT string to read. For example, "POINT(1,1)"
Returns
  • The geometry read from the string. Null if reading failed.
Throws
Exception If reading fails.