Package org.locationtech.jts.jump.io
Class FMEGMLWriter
- java.lang.Object
-
- org.locationtech.jts.jump.io.FMEGMLWriter
-
- All Implemented Interfaces:
JUMPWriter
public class FMEGMLWriter extends Object implements JUMPWriter
This class is aJUMPWriter
specialized to write FMEGML.DataProperties for the JCSWriter write(featureSchema,DataProperties) interface:
Parameter Meaning OutputFile or DefaultValue File name for output .xml file FMEFormatVersion '2000' or '2001'
The format version specifies which version of FME GML this should produce.
2000 <dataset xmlns="http://www.safe.com/xml/namespaces/fmegml2" xmlns:fme="http://www.safe.com/xml/namespaces/fmegml2" xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:schemaLocation="http://www.safe.com/xml/schemas/fmegml2.xsd" >
2001 <dataset xmlns="http://www.safe.com/xml/schemas/FMEFeatures" xmlns:fme="http://www.safe.com/xml/schemas/FMEFeatures" xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.safe.com/xml/schemas/FMEFeatures.xsd" >
-
-
Constructor Summary
Constructors Constructor Description FMEGMLWriter()
Creates new FMEGMLWriter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GMLOutputTemplate
createOutputTemplate(FeatureSchema fs)
Makes aGMLOutputTemplate
from a featureSchema.void
write(FeatureCollection featureCollection, DriverProperties dp)
Cause a featureCollection to be written using the outputfile (and format) specified in the dp parameter.
A GMLOutputTemplate will be autogenerated, then the write request passed off to theGMLWriter
.
-
-
-
Method Detail
-
write
public void write(FeatureCollection featureCollection, DriverProperties dp) throws IllegalParametersException, Exception
Cause a featureCollection to be written using the outputfile (and format) specified in the dp parameter.
A GMLOutputTemplate will be autogenerated, then the write request passed off to theGMLWriter
.- Specified by:
write
in interfaceJUMPWriter
- Parameters:
featureCollection
- set of features to be writtendp
- where to write and format- Throws:
IllegalParametersException
Exception
-
createOutputTemplate
public GMLOutputTemplate createOutputTemplate(FeatureSchema fs) throws ParseException, Exception
Makes aGMLOutputTemplate
from a featureSchema. Has two different version ('2000' and '2001').- Parameters:
fs
- description of the column in the dataset.- Throws:
ParseException
Exception
-
-