Package ucar.nc2.ft.point.writer2
Class FeatureDatasetCapabilitiesWriter
- java.lang.Object
-
- ucar.nc2.ft.point.writer2.FeatureDatasetCapabilitiesWriter
-
public class FeatureDatasetCapabilitiesWriter extends Object
generate capabilities XML for a FeatureDatasetPoint / StationTimeSeriesFeatureCollection
-
-
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 String
getAltUnits(org.jdom2.Document doc)
String
getCapabilities()
void
getCapabilities(OutputStream os)
org.jdom2.Document
getCapabilitiesDocument()
Create the capabilities XML document for this datasetstatic List<VariableSimpleIF>
getDataVariables(org.jdom2.Document doc)
static LatLonRect
getSpatialExtent(org.jdom2.Document doc)
static CalendarDateRange
getTimeSpan(org.jdom2.Document doc)
static CalendarDateUnit
getTimeUnit(org.jdom2.Document doc)
org.jdom2.Document
makeStationCollectionDocument(LatLonRect bb, String[] names)
Create an XML document for the stations in this dataset, possible subsetted by bb.org.jdom2.Document
readCapabilitiesDocument(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.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)
-
-