Package org.locationtech.jtstest.util.io
Class MultiFormatFileReader
- java.lang.Object
-
- org.locationtech.jtstest.util.io.MultiFormatFileReader
-
-
Constructor Summary
Constructors Constructor Description MultiFormatFileReader()
MultiFormatFileReader(GeometryFactory geomFactory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Geometry
read(String filename)
static List<Geometry>
read(String filename, int limit, int offset, GeometryFactory geomFactory)
static Geometry
readGeometry(String filename, int limit, int offset, GeometryFactory geomFactory)
List<Geometry>
readList(String filename)
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 Detail
-
MultiFormatFileReader
public MultiFormatFileReader()
-
MultiFormatFileReader
public MultiFormatFileReader(GeometryFactory geomFactory)
-
-
Method Detail
-
readGeometry
public static Geometry readGeometry(String filename, int limit, int offset, GeometryFactory geomFactory) throws Exception
- Throws:
Exception
-
read
public static List<Geometry> read(String filename, 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
-
-