ucar.nc2.ft.point.writer
Class FeatureDatasetPointXML

java.lang.Object
  extended by ucar.nc2.ft.point.writer.FeatureDatasetPointXML

public class FeatureDatasetPointXML
extends Object

generate capabilities XML for a FeatureDatasetPoint / StationTimeSeriesFeatureCollection

Since:
Aug 19, 2009
Author:
caron

Constructor Summary
FeatureDatasetPointXML(FeatureDatasetPoint fdp, String path)
           
 
Method Summary
static void doOne(String location, String path, String result)
           
 String getCapabilities()
           
 void getCapabilities(OutputStream os)
           
 org.jdom.Document getCapabilitiesDocument()
          Create the capabilities XML document for this datasets
static List<VariableSimpleIF> getDataVariables(org.jdom.Document doc)
           
static LatLonRect getSpatialExtent(org.jdom.Document doc)
           
static DateRange getTimeSpan(org.jdom.Document doc)
           
static void main(String[] args)
           
 org.jdom.Document makeStationCollectionDocument(LatLonRect bb, String[] names)
          Create an XML document for the stations in this dataset.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureDatasetPointXML

public FeatureDatasetPointXML(FeatureDatasetPoint fdp,
                              String path)
Method Detail

getCapabilities

public String getCapabilities()

getCapabilities

public void getCapabilities(OutputStream os)
                     throws IOException
Throws:
IOException

makeStationCollectionDocument

public org.jdom.Document makeStationCollectionDocument(LatLonRect bb,
                                                       String[] names)
                                                throws IOException
Create an XML document for the stations in this 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
Throws:
IOException - on read error

getCapabilitiesDocument

public org.jdom.Document getCapabilitiesDocument()
Create the capabilities XML document for this datasets

Returns:
capabilities XML document

getSpatialExtent

public static LatLonRect getSpatialExtent(org.jdom.Document doc)
                                   throws IOException
Throws:
IOException

getTimeSpan

public static DateRange getTimeSpan(org.jdom.Document doc)
                             throws IOException
Throws:
IOException

getDataVariables

public static List<VariableSimpleIF> getDataVariables(org.jdom.Document doc)
                                               throws IOException
Throws:
IOException

doOne

public static void doOne(String location,
                         String path,
                         String result)
                  throws IOException
Throws:
IOException

main

public static void main(String[] args)
                 throws IOException
Throws:
IOException


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.