Class WFSGetFeatureWriter


  • public class WFSGetFeatureWriter
    extends Object
    A writer for a WFS compliant Feature Collection GML file. Answers to GetFeature requests.
    • 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 to
        server - WFS Server URI
        namespace - 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.