Package ucar.nc2.dt.grid
Class GridDatasetInfo
- java.lang.Object
-
- ucar.nc2.dt.grid.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 Summary
Constructors Constructor Description GridDatasetInfo(GridDataset gds, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDatasetBoundariesWKT()
Returns a WKT polygon with the dataset boundariesorg.jdom2.Document
makeDatasetDescription()
Create the "Dataset Description" XML document from this GridDatasetorg.jdom2.Document
makeGridForm()
Create the "Grid Form" XML document from this GridDataset.String
writeXML(org.jdom2.Document doc)
Write the information as an XML documentvoid
writeXML(org.jdom2.Document doc, OutputStream os)
Write the information as an XML document
-
-
-
Constructor Detail
-
GridDatasetInfo
public GridDatasetInfo(GridDataset gds, String path)
-
-
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 Documentos
- 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
-
-