public class Wkt extends Object
Note that the WktDecoder instances returned by the factory
methods are not thread-safe.
| Modifier and Type | Class and Description |
|---|---|
static class |
Wkt.Dialect |
| Constructor and Description |
|---|
Wkt() |
| Modifier and Type | Method and Description |
|---|---|
static Geometry |
fromWkt(String wkt)
Decodes the specified WKT String to a
Geometry. |
static WktDecoder |
newDecoder()
Creates a
WktDecoder for the default dialect (Postgis 1.x EWKT). |
static WktDecoder |
newDecoder(Wkt.Dialect dialect)
Creates a
WktDecoder for the specified WKT Dialect. |
static WktEncoder |
newEncoder()
Creates a
WktEncoder for the default dialect (Postgis 1.x EWKT). |
static WktEncoder |
newEncoder(Wkt.Dialect dialect)
Creates a
WktEncoder for the specified WKT Dialect. |
static String |
toWkt(Geometry geometry)
Encodes a
Geometry to a WKT representation. |
public static Geometry fromWkt(String wkt)
Geometry.
This method uses the default WKT dialect (Postgis v1.5 EWKT)
wkt - the WKT string to decodepublic static String toWkt(Geometry geometry)
Geometry to a WKT representation.
This method uses the default WKT dialect (Postgis v1.5 EWKT)
geometry - the Geometry to encodepublic static WktDecoder newDecoder(Wkt.Dialect dialect)
WktDecoder for the specified WKT Dialect.dialect - the WKT dialectWktDecoder that supports the specified dialectpublic static WktDecoder newDecoder()
WktDecoder for the default dialect (Postgis 1.x EWKT).WktDecoder that supports the default dialectpublic static WktEncoder newEncoder(Wkt.Dialect dialect)
WktEncoder for the specified WKT Dialect.dialect - the WKT dialectWktEncoder that supports the specified dialectpublic static WktEncoder newEncoder()
WktEncoder for the default dialect (Postgis 1.x EWKT).WktEncoder that supports the default dialectCopyright © 2015 geolatte.org. All rights reserved.