Class GMLWriter

java.lang.Object
com.vividsolutions.jump.io.GMLWriter
All Implemented Interfaces:
JUMPWriter, TaskMonitorSupport
Direct Known Subclasses:
JMLWriter

public class GMLWriter extends Object implements JUMPWriter, TaskMonitorSupport
GMLWriter is a JUMPWriter specialized to output GML. TODO: use a proper XML framework, switch to XML1.1 which supports much broader range of unicode characters

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

NOTE: If OutputTemplateFile is unspecified, one will be auto-created (the JCS format).

Programmer details:

This is usually called as follows:
   gmlWriter= new GMLWriter(); 
   gmlWriter.write( DriverProperites);
or:
   gmlWriter.setOutputTemplate( GMLOutputTemplate);
   gmlWriter.write( <writer>, <stream name>);

Also, the function "makeOutputTemplate()" is useful for autogenerating the JCS outputtemplate.

Output will be formed from the OutputTeplate like:

headerText
==== This section repeated for each feature 
featureText[0] <evaluate codeText[0]>
featureText[1] <evaluate codeText[1]>
... 
featureTextFooter
====
footerText