class PostgisWktDecoder extends AbstractWktDecoder<Geometry<?>> implements WktDecoder
This class is not thread-safe
| Modifier and Type | Field and Description |
|---|---|
private CoordinateReferenceSystem<?> |
crs |
private static java.util.regex.Pattern |
SRID_RE |
private static PostgisWktVariant |
WKT_GEOM_TOKENS |
private java.lang.String |
wktString |
currentToken| Modifier | Constructor and Description |
|---|---|
|
PostgisWktDecoder() |
protected |
PostgisWktDecoder(WktVariant wktVariant) |
decodeInt, decodeNumber, decodeText, getTokenizerPosition, getWktVariant, matchesCloseList, matchesElementSeparator, matchesOpenList, nextToken, setTokenizerprivate static final PostgisWktVariant WKT_GEOM_TOKENS
private static final java.util.regex.Pattern SRID_RE
private java.lang.String wktString
private CoordinateReferenceSystem<?> crs
public PostgisWktDecoder()
protected PostgisWktDecoder(WktVariant wktVariant)
public Geometry<?> decode(java.lang.String wkt)
WktDecoderdecode in interface WktDecoderwkt - the WKT string to decodeGeometrypublic <P extends Position> Geometry<P> decode(java.lang.String wkt, CoordinateReferenceSystem<P> crs)
WktDecoderCoordinateReferenceSystem.decode in interface WktDecoderP - the Position type for the (base)wkt - the WKT string to decodecrs - the base coordinate reference system assumed for the wktGeometryprivate <P extends Position> void prepare(java.lang.String wkt, CoordinateReferenceSystem<P> crs)
wkt - the WKT representationprivate void initializeTokenizer(boolean forceToCRS)
private <P extends Position> Geometry<P> decodeGeometry(CoordinateReferenceSystem<P> crs)
private <P extends Position> MultiPolygon<P> decodeMultiPolygon(CoordinateReferenceSystem<P> crs)
private <P extends Position> Geometry<P> decodeMultiLineString(CoordinateReferenceSystem<P> crs)
private <P extends Position> Geometry<P> decodeMultiPoint(CoordinateReferenceSystem<P> crs)
private <P extends Position> GeometryCollection<P,Geometry<P>> decodeGeometryCollection(CoordinateReferenceSystem<P> crs)
private <P extends Position> Polygon<P> decodePolygonText(CoordinateReferenceSystem<P> crs)
private <P extends Position> LinearRing<P> decodeLinearRingText(CoordinateReferenceSystem<P> crs)
private <P extends Position> LineString<P> decodeLineStringText(CoordinateReferenceSystem<P> crs)
private <P extends Position> Point<P> decodePointText(CoordinateReferenceSystem<P> crs)
private boolean matchesEmptyToken()
private <P extends Position> WktPointSequenceToken<P> decodePointSequence(CoordinateReferenceSystem<P> forceCrs)
private java.lang.String buildWrongSymbolAtPositionMsg()