Package ucar.nc2.ft.point.writer
Class FeatureDatasetCapabilitiesWriter
- java.lang.Object
-
- ucar.nc2.ft.point.writer.FeatureDatasetCapabilitiesWriter
-
public class FeatureDatasetCapabilitiesWriter extends Object
generate capabilities XML for a FeatureDatasetPoint / StationTimeSeriesFeatureCollection- Since:
- Aug 19, 2009
-
-
Constructor Summary
Constructors Constructor Description FeatureDatasetCapabilitiesWriter(FeatureDatasetPoint fdp, String path)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringgetAltUnits(org.jdom2.Document doc)StringgetCapabilities()voidgetCapabilities(OutputStream os)org.jdom2.DocumentgetCapabilitiesDocument()Create the capabilities XML document for this datasetstatic List<VariableSimpleIF>getDataVariables(org.jdom2.Document doc)static LatLonRectgetSpatialExtent(org.jdom2.Document doc)static CalendarDateRangegetTimeSpan(org.jdom2.Document doc)static CalendarDateUnitgetTimeUnit(org.jdom2.Document doc)org.jdom2.DocumentmakeStationCollectionDocument(LatLonRect bb, String[] names)Create an XML document for the stations in this dataset, possible subsetted by bb.org.jdom2.DocumentreadCapabilitiesDocument(InputStream in)
-
-
-
Constructor Detail
-
FeatureDatasetCapabilitiesWriter
public FeatureDatasetCapabilitiesWriter(FeatureDatasetPoint fdp, String path)
-
-
Method Detail
-
getCapabilities
public String getCapabilities()
-
getCapabilities
public void getCapabilities(OutputStream os) throws IOException
- Throws:
IOException
-
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 nullnames- 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.JDOMExceptionIOException
-
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)
-
-