Package org.geotools.geometry.jts
Class WKTReader2
- Object
-
- WKTReader
-
- WKTReader2
-
public class WKTReader2 extends WKTReader
Create a geometry from SQL Multi-Media Extension Well-Known Text which allows curves.- See Also:
WKTWriter2
-
-
Constructor Summary
Constructors Constructor Description WKTReader2()
Creates 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Geometry
read(Reader reader)
Reads a Well-Known Text representation of aGeometry
from aReader
.Geometry
read(String wellKnownText)
Reads a Well-Known Text representation of aGeometry
from aString
.
-
-
-
Constructor Detail
-
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
public WKTReader2(GeometryFactory geometryFactory)
Creates a reader that creates objects using the givenGeometryFactory
.- Parameters:
geometryFactory
- the factory used to createGeometry
s.
-
-
Method Detail
-
read
public Geometry read(String wellKnownText) throws ParseException
Reads a Well-Known Text representation of aGeometry
from aString
.- Overrides:
read
in classWKTReader
- Parameters:
wellKnownText
- one or morestrings (see the OpenGIS Simple Features Specification) separated by whitespace - Returns:
- a
Geometry
specified bywellKnownText
- Throws:
ParseException
- if a parsing problem occurs
-
read
public Geometry read(Reader reader) throws ParseException
Reads a Well-Known Text representation of aGeometry
from aReader
.- Overrides:
read
in classWKTReader
- Parameters:
reader
- a Reader which will return astring (see the OpenGIS Simple Features Specification) - Returns:
- a
Geometry
read fromreader
- Throws:
ParseException
- if a parsing problem occurs
-
-