public class GMLWriter extends Object implements JUMPWriter
JUMPWriter specialized to output GML.
DataProperties for the JCSWriter write(featureSchema,DataProperties) interface:
| Parameter | Meaning |
|---|---|
| OutputFile or DefaultValue | File name for output .xml file |
| OutputTemplateFile | File name for GMLOutputTemplate file |
gmlWriter= new GMLWriter();
gmlWriter.write( DriverProperites);
or:
gmlWriter.setOutputTemplate( GMLOutputTemplate);
gmlWriter.write( , );
headerText ==== This section repeated for each feature featureText[0] <evaluate codeText[0]> featureText[1] <evaluate codeText[1]> ... featureTextFooter ==== footerText
| Modifier and Type | Field and Description |
|---|---|
static String |
standard_feature |
static String |
standard_featureCollection |
static String |
standard_geom |
| Constructor and Description |
|---|
GMLWriter()
constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
format(Date date) |
static String |
makeInputTemplate(FeatureSchema fcmd)
given a FeatureSchema, make a chunk of XML that represents a valid
GMLInputTemplate for the JCS format.
|
static GMLOutputTemplate |
makeOutputTemplate(FeatureSchema fcmd)
given a FEatureSchema, make an output template
in the JCS format
|
static String |
safeXML(String s)
Convert an arbitary string into something that will not cause XML to gack.
|
void |
setOutputTemplate(GMLOutputTemplate ot)
Attaches a GMLOuputTemplate
|
protected String |
toString(Feature f,
String column) |
void |
write(FeatureCollection featureCollection,
DriverProperties dp)
Main entry function - write the GML file.
|
void |
write(FeatureCollection featureCollection,
Writer writer)
Actual evaluator/writer - you should have already called setOutputTemplate
|
public static String standard_geom
public static String standard_feature
public static String standard_featureCollection
public void write(FeatureCollection featureCollection, DriverProperties dp) throws IllegalParametersException, Exception
write in interface JUMPWriterfeatureCollection - features to writedp - specify the 'OuputFile' and 'OuputTemplateFile'IllegalParametersExceptionExceptionpublic void write(FeatureCollection featureCollection, Writer writer) throws Exception
featureCollection - features to writewriter - - where to send the output toExceptionpublic static String safeXML(String s)
s - string to safe-ifypublic void setOutputTemplate(GMLOutputTemplate ot)
public static GMLOutputTemplate makeOutputTemplate(FeatureSchema fcmd)
fcmd - input featureSchemapublic static String makeInputTemplate(FeatureSchema fcmd)
fcmd - the featureSchema to describeCopyright © 2015. All rights reserved.