Package thredds.server.wfs
Class WFSDescribeFeatureTypeWriter
java.lang.Object
thredds.server.wfs.WFSDescribeFeatureTypeWriter
Writes the XML for a WFS DescribeFeatureType request
-
Constructor Summary
ConstructorsConstructorDescriptionWFSDescribeFeatureTypeWriter(PrintWriter response, String server, String namespace) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFeature(WFSFeature feature) Add a feature to the writer's feature list.voidFinish writing the XML file and append it all to the PrintWriter.voidstartXML()Initiate the response with an XML file with an XML headervoidWrite the features from the featureList.
-
Constructor Details
-
WFSDescribeFeatureTypeWriter
-
-
Method Details
-
startXML
public void startXML()Initiate the response with an XML file with an XML header -
addFeature
Add a feature to the writer's feature list.- Parameters:
feature- to add
-
writeFeatures
public void writeFeatures()Write the features from the featureList. For each feature, write its attributes -
finishXML
public void finishXML()Finish writing the XML file and append it all to the PrintWriter. Once a XML is finished, the WFSDataWriter is no longer usable.
-