Package org.geolatte.geom.codec
Interface WktDecoder
-
public interface WktDecoderA decoder for WKT (Well-Known Text) representations.In general
WkbDecoderimplementations are not be thread-safe.- Author:
- Karel Maesen, Geovise BVBA
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Geometry<?>decode(String wkt)Decodes a WKT representation.<P extends Position>
Geometry<P>decode(String wkt, CoordinateReferenceSystem<P> crs)Decodes a WKT representation using the specifiedCoordinateReferenceSystem.
-
-
-
Method Detail
-
decode
Geometry<?> decode(String wkt)
Decodes a WKT representation.- Parameters:
wkt- the WKT string to decode- Returns:
- the decoded
Geometry - Throws:
WktDecodeException- when the String is an invalid or unsupported WKT representation
-
decode
<P extends Position> Geometry<P> decode(String wkt, CoordinateReferenceSystem<P> crs)
Decodes a WKT representation using the specifiedCoordinateReferenceSystem.If a (non-null)
CoordinateReferenceSystemis provided, the SRID information in the WKT will be ignored.- Type Parameters:
P- the Position type for the returned Geometry- Parameters:
wkt- the WKT string to decodecrs- the base coordinate reference system assumed for the wkt.- Returns:
- the decoded
Geometry - Throws:
WktDecodeException- when the String is an invalid or unsupported WKT representation, or the WKT is not consistent with the specifiedCoordinateReferenceSystem
-
-