| Constructor and Description |
|---|
WKTFileReader(File
Creates a new
WKTFileReader given the
File to read from and a
WKTReader to use to parse the geometries.
|
WKTFileReader(Reader
Creates a new
WKTFileReader, given a
Reader to read from.
|
WKTFileReader(String
Creates a new
WKTFileReader, given the name of the file to read from.
|
public WKTFileReader(Filefile, WKTReader wktReader)
file - the
File to read from
wktReader - the geometry reader to use
public WKTFileReader(Stringfilename, WKTReader wktReader)
filename - the name of the file to read from
wktReader - the geometry reader to use
public void setLimit(int limit)
limit - the maximum number of geometries to read
public void setOffset(int offset)
offset - the number of geometries to skip
public Listread() throws IOException , ParseException
IOException - if an I/O exception was encountered
ParseException - if an error occured reading a geometry