Package com.vividsolutions.jump.io
Class FMEGMLReader
- java.lang.Object
-
- com.vividsolutions.jump.io.AbstractJUMPReader
-
- com.vividsolutions.jump.io.FMEGMLReader
-
- All Implemented Interfaces:
JUMPReader
,TaskMonitorSupport
public class FMEGMLReader extends AbstractJUMPReader
A driver that reads GML files following the FME default schema.DataProperties for the driver
Parameter Meaning File or DefaultValue File name for the input FME .xml file CompressedFile File name (a .zip or .gz) with a .jml/.xml/.gml inside (specified by File) GMLReader
. It makes aGMLInputTemplate
to pass to the GMLReader by examining the schema specified in the input file.
-
-
Constructor Summary
Constructors Constructor Description FMEGMLReader()
Creates new FMEGMLReader
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GMLInputTemplate
getGMLInputTemplate(InputStream inputStream, String fname)
Parse the input file and make a GMLInputTemplate out of itFeatureCollection
read(DriverProperties dp)
Main method - reads in FMEGML file specified in the DriverProperties ('InputFile' or 'DefaultValue')-
Methods inherited from class com.vividsolutions.jump.io.AbstractJUMPReader
addException, getExceptions, getTaskMonitor, setTaskMonitor
-
-
-
-
Method Detail
-
read
public FeatureCollection read(DriverProperties dp) throws Exception
Main method - reads in FMEGML file specified in the DriverProperties ('InputFile' or 'DefaultValue')- Specified by:
read
in interfaceJUMPReader
- Specified by:
read
in classAbstractJUMPReader
- Parameters:
dp
-DriverProperties
to specify the file to read ('InputFile' or 'DefaultValue')- Throws:
Exception
-
getGMLInputTemplate
public GMLInputTemplate getGMLInputTemplate(InputStream inputStream, String fname) throws IOException, ParseException
Parse the input file and make a GMLInputTemplate out of it- Parameters:
fname
- just used in error messageinputStream
- a UTF-8 encoded input stream- Throws:
IOException
ParseException
-
-