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

    Modifier and Type
    Method
    Description
    void
    Finish writing the XML file, write the end tag for FeatureCollection and append it all to the PrintWriter.
    void
    Initiate the response with an XML file with an XML header and the FeatureCollection tag.
    void
    In the WFS specification for GetFeature each feature type is its own member and so writeMembers add each member to the fileOutput

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 to
      server - WFS Server URI
      namespace - 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.