Package com.vividsolutions.jump.io
Class WKTReader
- java.lang.Object
-
- com.vividsolutions.jump.io.AbstractJUMPReader
-
- com.vividsolutions.jump.io.WKTReader
-
- All Implemented Interfaces:
JUMPReader,TaskMonitorSupport
public class WKTReader extends AbstractJUMPReader
WKTReader is aJUMPReaderspecialized to read WTK (Well Known Text) files.DataProperties for the JUMPReader load(DataProperties) interface:
Parameter Meaning File or DefaultValue File name for the input WKT file CompressedFile File name (a .zip or .gz) with a .jml/.xml/.gml inside (specified by File)
-
-
Constructor Summary
Constructors Constructor Description WKTReader()constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FeatureCollectionread(DriverProperties dp)Main function -read in a file containing a list of WKT geometriesFeatureCollectionread(Reader reader)Reads in the actual WKT geometries-
Methods inherited from class com.vividsolutions.jump.io.AbstractJUMPReader
addException, getExceptions, getTaskMonitor, setTaskMonitor
-
-
-
-
Method Detail
-
read
public FeatureCollection read(DriverProperties dp) throws Exception
Main function -read in a file containing a list of WKT geometries- Specified by:
readin interfaceJUMPReader- Specified by:
readin classAbstractJUMPReader- Parameters:
dp- 'InputFile' or 'DefaultValue' to specify where the WKT file is.- Throws:
Exception
-
read
public FeatureCollection read(Reader reader) throws Exception
Reads in the actual WKT geometries- Parameters:
reader- where to read the geometries from- Throws:
Exception
-
-