Package thredds.catalog
Class ThreddsMetadata.GeospatialCoverage
- java.lang.Object
-
- thredds.catalog.ThreddsMetadata.GeospatialCoverage
-
- Enclosing class:
- ThreddsMetadata
public static class ThreddsMetadata.GeospatialCoverage extends Object
Implements GeospatialCoverage type.
-
-
Constructor Summary
Constructors Constructor Description GeospatialCoverage()GeospatialCoverage(ThreddsMetadata.Range eastwest, ThreddsMetadata.Range northsouth, ThreddsMetadata.Range updown, List<ThreddsMetadata.Vocab> names, String zpositive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)voidextend(ThreddsMetadata.GeospatialCoverage gc)ucar.unidata.geoloc.LatLonRectgetBoundingBox()ThreddsMetadata.RangegetEastWestRange()doublegetHeightExtent()doublegetHeightResolution()doublegetHeightStart()StringgetHeightUnits()doublegetLatExtent()doublegetLatNorth()doublegetLatResolution()doublegetLatSouth()doublegetLatStart()StringgetLatUnits()doublegetLonEast()doublegetLonExtent()doublegetLonResolution()doublegetLonStart()StringgetLonUnits()doublegetLonWest()List<ThreddsMetadata.Vocab>getNames()ThreddsMetadata.RangegetNorthSouthRange()ThreddsMetadata.RangegetUpDownRange()StringgetZPositive()booleangetZPositiveUp()inthashCode()Override Object.hashCode() to implement equals.booleanisEmpty()booleanisGlobal()booleanisValid()voidsetBoundingBox(ucar.unidata.geoloc.LatLonRect bb)voidsetGlobal(boolean isGlobal)Set isGlobalvoidsetHeightExtent(double size)Set height extentvoidsetHeightResolution(double resolution)Set height resolutionvoidsetHeightStart(double start)Set starting heightvoidsetHeightUnits(String units)Set height unitsvoidsetLatExtent(double size)Set latitude extentvoidsetLatResolution(double resolution)Set latitude resolutionvoidsetLatStart(double start)Set starting latitudevoidsetLatUnits(String units)Set latitude unitsvoidsetLonExtent(double size)Set longitude extentvoidsetLonResolution(double resolution)Set longitude resolutionvoidsetLonStart(double start)Set starting longitudevoidsetLonUnits(String units)Set longitude unitsvoidsetVertical(double start, double end, double resolution, String units, boolean isPositiveUp)voidsetVertical(ucar.nc2.dataset.CoordinateAxis1D vaxis)voidsetZPositive(String positive)voidsetZPositiveUp(boolean positive)voidtoXML(OutputStream out)
-
-
-
Constructor Detail
-
GeospatialCoverage
public GeospatialCoverage()
-
GeospatialCoverage
public GeospatialCoverage(ThreddsMetadata.Range eastwest, ThreddsMetadata.Range northsouth, ThreddsMetadata.Range updown, List<ThreddsMetadata.Vocab> names, String zpositive)
-
-
Method Detail
-
extend
public void extend(ThreddsMetadata.GeospatialCoverage gc)
-
isEmpty
public boolean isEmpty()
-
getEastWestRange
public ThreddsMetadata.Range getEastWestRange()
-
getNorthSouthRange
public ThreddsMetadata.Range getNorthSouthRange()
-
getUpDownRange
public ThreddsMetadata.Range getUpDownRange()
-
getNames
public List<ThreddsMetadata.Vocab> getNames()
-
getZPositive
public String getZPositive()
- Returns:
- "up" or "down"
-
setZPositive
public void setZPositive(String positive)
-
getZPositiveUp
public boolean getZPositiveUp()
- Returns:
- true or false
-
setZPositiveUp
public void setZPositiveUp(boolean positive)
-
isValid
public boolean isValid()
-
isGlobal
public boolean isGlobal()
- Returns:
- true if coverage is Global
-
setGlobal
public void setGlobal(boolean isGlobal)
Set isGlobal- Parameters:
isGlobal- true if global coverage
-
getLatStart
public double getLatStart()
- Returns:
- starting latitude, or Double.NaN if not valie
-
setLatStart
public void setLatStart(double start)
Set starting latitude- Parameters:
start- starting latitude, decimal degrees north
-
getLatExtent
public double getLatExtent()
- Returns:
- latitude extent - may be positive or negetive
-
setLatExtent
public void setLatExtent(double size)
Set latitude extent- Parameters:
size- latitude extent, decimal degrees north
-
getLatResolution
public double getLatResolution()
- Returns:
- latitude resolution: 0.0 or NaN means not set.
-
setLatResolution
public void setLatResolution(double resolution)
Set latitude resolution- Parameters:
resolution- latitude resolution, decimal degrees north
-
getLatUnits
public String getLatUnits()
- Returns:
- latitude units
-
setLatUnits
public void setLatUnits(String units)
Set latitude units- Parameters:
units- set units
-
getLatNorth
public double getLatNorth()
-
getLatSouth
public double getLatSouth()
-
getLonStart
public double getLonStart()
- Returns:
- starting longitude
-
setLonStart
public void setLonStart(double start)
Set starting longitude- Parameters:
start- starting longitude
-
getLonExtent
public double getLonExtent()
- Returns:
- longitude extent - may be positive or negetive
-
setLonExtent
public void setLonExtent(double size)
Set longitude extent- Parameters:
size- longitude extent
-
getLonResolution
public double getLonResolution()
- Returns:
- longitude resolution: 0.0 or NaN means not set.
-
setLonResolution
public void setLonResolution(double resolution)
Set longitude resolution- Parameters:
resolution- longitude resolution
-
getLonUnits
public String getLonUnits()
- Returns:
- longitude units
-
setLonUnits
public void setLonUnits(String units)
Set longitude units- Parameters:
units- longitude units
-
getLonEast
public double getLonEast()
-
getLonWest
public double getLonWest()
-
getHeightStart
public double getHeightStart()
- Returns:
- starting height
-
setHeightStart
public void setHeightStart(double start)
Set starting height- Parameters:
start- starting height
-
getHeightExtent
public double getHeightExtent()
- Returns:
- height extent - may be positive or negetive
-
setHeightExtent
public void setHeightExtent(double size)
Set height extent- Parameters:
size- height extent
-
getHeightResolution
public double getHeightResolution()
- Returns:
- height resolution: 0.0 or NaN means not set.
-
setHeightResolution
public void setHeightResolution(double resolution)
Set height resolution- Parameters:
resolution- height resolution
-
getHeightUnits
public String getHeightUnits()
- Returns:
- height units
-
setHeightUnits
public void setHeightUnits(String units)
Set height units- Parameters:
units- height units
-
getBoundingBox
public ucar.unidata.geoloc.LatLonRect getBoundingBox()
-
setBoundingBox
public void setBoundingBox(ucar.unidata.geoloc.LatLonRect bb)
-
setVertical
public void setVertical(ucar.nc2.dataset.CoordinateAxis1D vaxis)
-
setVertical
public void setVertical(double start, double end, double resolution, String units, boolean isPositiveUp)
-
hashCode
public int hashCode()
Override Object.hashCode() to implement equals.
-
toXML
public void toXML(OutputStream out) throws IOException
- Throws:
IOException
-
-