Class GridDatasetInfo


  • public class GridDatasetInfo
    extends Object
    A helper class to GridDataset; creates a GridDataset XML document. This is a candidate for the XML representation of the Grid SDT. Used to create form for NetcdfSubsetService for Grids.
    • Constructor Detail

    • Method Detail

      • writeXML

        public String writeXML​(org.jdom2.Document doc)
        Write the information as an XML document
        Parameters:
        doc - write XML for this Document
        Returns:
        String output
      • writeXML

        public void writeXML​(org.jdom2.Document doc,
                             OutputStream os)
                      throws IOException
        Write the information as an XML document
        Parameters:
        doc - write XML for this Document
        os - write to this output stream
        Throws:
        IOException - on write error
      • makeDatasetDescription

        public org.jdom2.Document makeDatasetDescription()
        Create the "Dataset Description" XML document from this GridDataset
        Returns:
        a JDOM Document
      • getDatasetBoundariesWKT

        public String getDatasetBoundariesWKT()
        Returns a WKT polygon with the dataset boundaries
        Returns:
        WKT string
      • makeGridForm

        public org.jdom2.Document makeGridForm()
        Create the "Grid Form" XML document from this GridDataset. Used to create the Grid HTML form, cause I dont know XSLT
        Returns:
        the JDOM Document