@Deprecated public class JtsWKTReaderShapeParser extends WKTReader
WKTReader that processes the entire
string with JTS's WKTReader. Some differences:
GeometryCollection subclasses,
not ShapeCollectionWKTReader.Statectx, shapeFactory| Constructor and Description |
|---|
JtsWKTReaderShapeParser(JtsSpatialContext ctx,
JtsSpatialContextFactory factory)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkCoordinates(org.locationtech.jts.geom.Geometry geom)
Deprecated.
|
Shape |
parseIfSupported(String wktString)
Deprecated.
Parses the wktString, returning the defined Shape.
|
protected Shape |
parseIfSupported(String str,
org.locationtech.jts.io.WKTReader reader)
Deprecated.
Reads WKT from the
str via JTS's WKTReader. |
getFormatName, newState, parse, parseBufferShape, parseEnvelopeShape, parseGeometryCollectionShape, parseLineStringShape, parseMulitPolygonShape, parseMultiLineStringShape, parseMultiPointShape, parsePointShape, parsePolygonShape, parseShapeByType, point, pointList, polygon, read, read, readIfSupported, shapepublic JtsWKTReaderShapeParser(JtsSpatialContext ctx, JtsSpatialContextFactory factory)
public Shape parseIfSupported(String wktString) throws ParseException
WKTReaderParseException.parseIfSupported in class WKTReaderwktString - non-null, can be empty or have surrounding whitespaceParseException - Thrown if there is an error in the Shape definitionprotected Shape parseIfSupported(String str, org.locationtech.jts.io.WKTReader reader) throws ParseException
str via JTS's WKTReader.str - reader - new WKTReader(ctx.getGeometryFactory()))
ParseExceptionprotected void checkCoordinates(org.locationtech.jts.geom.Geometry geom)
Copyright © 2025 LocationTech. All rights reserved.