Package org.geotools.geometry.jts
Class WKTReader2
Create a geometry from SQL Multi-Media Extension Well-Known Text which allows curves.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a reader that creates objects using the defaultGeometryFactory.WKTReader2(double tolerance) Creates a reader that creates objects using the defaultGeometryFactory.WKTReader2(GeometryFactory geometryFactory) Creates a reader that creates objects using the givenGeometryFactory. -
Method Summary
Methods inherited from class WKTReader
setFixStructure, setIsOldJtsCoordinateSyntaxAllowed, setIsOldJtsMultiPointSyntaxAllowed
-
Constructor Details
-
WKTReader2
public WKTReader2()Creates a reader that creates objects using the defaultGeometryFactory. -
WKTReader2
public WKTReader2(double tolerance) Creates a reader that creates objects using the defaultGeometryFactory. -
WKTReader2
Creates a reader that creates objects using the givenGeometryFactory.- Parameters:
geometryFactory- the factory used to createGeometrys.
-
-
Method Details
-
read
- Overrides:
readin classWKTReader- Parameters:
wellKnownText- one or morestrings (see the OpenGIS Simple Features Specification) separated by whitespace - Returns:
- a
Geometryspecified bywellKnownText - Throws:
ParseException- if a parsing problem occurs
-
read
- Overrides:
readin classWKTReader- Parameters:
reader- a Reader which will return astring (see the OpenGIS Simple Features Specification) - Returns:
- a
Geometryread fromreader - Throws:
ParseException- if a parsing problem occurs
-