Package thredds.server.wfs
Class WFSGetFeatureWriter
- java.lang.Object
-
- thredds.server.wfs.WFSGetFeatureWriter
-
public class WFSGetFeatureWriter extends Object
A writer for a WFS compliant Feature Collection GML file. Answers to GetFeature requests.
-
-
Constructor Summary
Constructors Constructor Description WFSGetFeatureWriter(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinishXML()Finish 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.voidwriteMembers()In the WFS specification for GetFeature each feature type is its own member and so writeMembers add each member to the fileOutput
-
-
-
Constructor Detail
-
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 Detail
-
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.
-
-