Package org.locationtech.jtstest.util.io
Class MultiFormatBufferedReader
java.lang.Object
org.locationtech.jtstest.util.io.MultiFormatBufferedReader
Reads a
Geometry
from a string which is in either WKT, WKBHex
or GML format- Version:
- 1.7
- Author:
- Martin Davis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread
(Reader reader, int limit, int offset, GeometryFactory geomFactory) readWKT
(Reader rdr, GeometryFactory geomFact) void
setLimit
(int limit) Sets the maximum number of geometries to read.void
setOffset
(int offset) Sets the number of geometries to skip before storing.
-
Constructor Details
-
MultiFormatBufferedReader
public MultiFormatBufferedReader() -
MultiFormatBufferedReader
-
-
Method Details
-
read
public static List<Geometry> read(Reader reader, int limit, int offset, GeometryFactory geomFactory) throws Exception - Throws:
Exception
-
setLimit
public void setLimit(int limit) Sets the maximum number of geometries to read.- Parameters:
limit
- the maximum number of geometries to read
-
setOffset
public void setOffset(int offset) Sets the number of geometries to skip before storing.- Parameters:
offset
- the number of geometries to skip
-
read
- Throws:
ParseException
IOException
-
readWKT
public List<Geometry> readWKT(Reader rdr, GeometryFactory geomFact) throws ParseException, IOException - Throws:
ParseException
IOException
-