public interface WktDecoder
In general WkbDecoder
implementations are not be thread-safe.
Modifier and Type | Method and Description |
---|---|
default Geometry<?> |
decode(String wkt)
Decodes a WKT representation.
|
<P extends Position> |
decode(String wkt,
CoordinateReferenceSystem<P> crs)
Decodes a WKT representation using the specified
CoordinateReferenceSystem . |
default Geometry<?> decode(String wkt)
wkt
- the WKT string to decodeGeometry
WktDecodeException
- when the String is an invalid or unsupported WKT representation<P extends Position> Geometry<P> decode(String wkt, CoordinateReferenceSystem<P> crs)
CoordinateReferenceSystem
.
If a (non-null) CoordinateReferenceSystem
is provided, the SRID information in the WKT will be ignored.
P
- the Position type for the returned Geometrywkt
- the WKT string to decodecrs
- the base coordinate reference system assumed for the wkt.Geometry
WktDecodeException
- when the String is an invalid or unsupported WKT representation, or the WKT is not
consistent with the specified CoordinateReferenceSystem
Copyright © 2021 geolatte.org. All rights reserved.