Class FeatureDatasetCapabilitiesWriter


  • public class FeatureDatasetCapabilitiesWriter
    extends Object
    generate capabilities XML for a FeatureDatasetPoint / StationTimeSeriesFeatureCollection
    Since:
    Aug 19, 2009
    • Constructor Detail

    • Method Detail

      • getCapabilities

        public String getCapabilities()
      • makeStationCollectionDocument

        public org.jdom2.Document makeStationCollectionDocument​(LatLonRect bb,
                                                                String[] names)
        Create an XML document for the stations in this dataset, possible subsetted by bb. Must be a station dataset.
        Parameters:
        bb - restrict stations to this bounding box, may be null
        names - restrict stations to these names, may be null
        Returns:
        XML document for the stations
      • getCapabilitiesDocument

        public org.jdom2.Document getCapabilitiesDocument()
        Create the capabilities XML document for this dataset
        Returns:
        capabilities XML document
      • readCapabilitiesDocument

        public org.jdom2.Document readCapabilitiesDocument​(InputStream in)
                                                    throws org.jdom2.JDOMException,
                                                           IOException
        Throws:
        org.jdom2.JDOMException
        IOException
      • getSpatialExtent

        public static LatLonRect getSpatialExtent​(org.jdom2.Document doc)
      • getTimeSpan

        public static CalendarDateRange getTimeSpan​(org.jdom2.Document doc)
      • getTimeUnit

        public static CalendarDateUnit getTimeUnit​(org.jdom2.Document doc)
      • getAltUnits

        public static String getAltUnits​(org.jdom2.Document doc)
      • getDataVariables

        public static List<VariableSimpleIF> getDataVariables​(org.jdom2.Document doc)