|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jump.io.GMLWriter
public class GMLWriter
GMLWriter is a 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
| Field Summary | |
|---|---|
static java.lang.String |
standard_feature
|
static java.lang.String |
standard_featureCollection
|
static java.lang.String |
standard_geom
|
| Constructor Summary | |
|---|---|
GMLWriter()
constructor |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String standard_geom
public static java.lang.String standard_feature
public static java.lang.String standard_featureCollection
| Constructor Detail |
|---|
public GMLWriter()
| Method Detail |
|---|
public void write(FeatureCollection featureCollection,
DriverProperties dp)
throws IllegalParametersException,
java.lang.Exception
write in interface JUMPWriterfeatureCollection - features to writedp - specify the 'OuputFile' and 'OuputTemplateFile'
IllegalParametersException
java.lang.Exception
public void write(FeatureCollection featureCollection,
java.io.Writer writer)
throws java.lang.Exception
featureCollection - features to writewriter - - where to send the output to
java.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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||