Package thredds.server.wfs
Class WFSGetFeatureWriter
java.lang.Object
thredds.server.wfs.WFSGetFeatureWriter
A writer for a WFS compliant Feature Collection GML file.
Answers to GetFeature requests.
-
Constructor Summary
ConstructorsConstructorDescriptionWFSGetFeatureWriter(PrintWriter response, String server, String namespace, List<ucar.nc2.ft2.simpgeometry.SimpleGeometry> geometries, String ftName) Opens a WFSGetFeatureWriter, writes to the response given. -
Method Summary
Modifier and TypeMethodDescriptionvoidFinish writing the XML file, write the end tag for FeatureCollection and append it all to the PrintWriter.voidstartXML()Initiate the response with an XML file with an XML header and the FeatureCollection tag.voidIn the WFS specification for GetFeature each feature type is its own member and so writeMembers add each member to the fileOutput
-
Constructor Details
-
WFSGetFeatureWriter
public WFSGetFeatureWriter(PrintWriter response, String server, String namespace, List<ucar.nc2.ft2.simpgeometry.SimpleGeometry> geometries, String ftName) Opens a WFSGetFeatureWriter, writes to the response given.- Parameters:
response- to write toserver- WFS Server URInamespace- WFS TDS Namespace URI- Throws:
IOException
-
-
Method Details
-
startXML
public void startXML()Initiate the response with an XML file with an XML header and the FeatureCollection tag. Write bounding box and namespace information. -
writeMembers
public void writeMembers()In the WFS specification for GetFeature each feature type is its own member and so writeMembers add each member to the fileOutput -
finishXML
public void finishXML()Finish writing the XML file, write the end tag for FeatureCollection and append it all to the PrintWriter. Once a XML is finished, the WFSDataWriter is no longer usable.
-