public class GMLWriter extends java.lang.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 java.lang.String | 
standard_feature  | 
static java.lang.String | 
standard_featureCollection  | 
static java.lang.String | 
standard_geom  | 
| Constructor and Description | 
|---|
GMLWriter()
constructor 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected java.lang.String | 
format(java.util.Date date)  | 
static java.lang.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 java.lang.String | 
safeXML(java.lang.String s)
Convert an arbitary string into something that will not cause XML to gack. 
 | 
void | 
setOutputTemplate(GMLOutputTemplate ot)
Attaches a GMLOuputTemplate 
 | 
protected java.lang.String | 
toString(Feature f,
        java.lang.String column)  | 
void | 
write(FeatureCollection featureCollection,
     DriverProperties dp)
Main entry function - write the GML file. 
 | 
void | 
write(FeatureCollection featureCollection,
     java.io.Writer writer)
Actual evaluator/writer - you should have already called setOutputTemplate 
 | 
public static java.lang.String standard_geom
public static java.lang.String standard_feature
public static java.lang.String standard_featureCollection
public void write(FeatureCollection featureCollection, DriverProperties dp) throws IllegalParametersException, java.lang.Exception
write in interface JUMPWriterfeatureCollection - features to writedp - specify the 'OuputFile' and 'OuputTemplateFile'IllegalParametersExceptionjava.lang.Exceptionpublic void write(FeatureCollection featureCollection, java.io.Writer writer) throws java.lang.Exception
featureCollection - features to writewriter - - where to send the output tojava.lang.Exceptionpublic static java.lang.String safeXML(java.lang.String s)
s - string to safe-ifypublic void setOutputTemplate(GMLOutputTemplate ot)
protected java.lang.String toString(Feature f, java.lang.String column)
protected java.lang.String format(java.util.Date date)
public static GMLOutputTemplate makeOutputTemplate(FeatureSchema fcmd)
fcmd - input featureSchemapublic static java.lang.String makeInputTemplate(FeatureSchema fcmd)
fcmd - the featureSchema to describe