public class WKTReader2
extends WKTReader
WKTWriter2
Constructor and Description |
---|
WKTReader2()
Creates a reader that creates objects using the default
GeometryFactory . |
WKTReader2(double tolerance)
Creates a reader that creates objects using the default
GeometryFactory . |
WKTReader2(GeometryFactory geometryFactory)
Creates a reader that creates objects using the given
GeometryFactory . |
Modifier and Type | Method and Description |
---|---|
Geometry |
read(Reader reader)
Reads a Well-Known Text representation of a
Geometry from a Reader . |
Geometry |
read(String wellKnownText)
Reads a Well-Known Text representation of a
Geometry from a String . |
public WKTReader2()
GeometryFactory
.public WKTReader2(double tolerance)
GeometryFactory
.public WKTReader2(GeometryFactory geometryFactory)
GeometryFactory
.geometryFactory
- the factory used to create Geometry
s.public Geometry read(String wellKnownText) throws ParseException
Geometry
from a String
.read
in class WKTReader
wellKnownText
- one or more Geometry
specified by wellKnownText
ParseException
- if a parsing problem occurspublic Geometry read(Reader reader) throws ParseException
Geometry
from a Reader
.read
in class WKTReader
reader
- a Reader which will return a Geometry
read from reader
ParseException
- if a parsing problem occursCopyright © 1996–2023 Geotools. All rights reserved.