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 boolean
equals(Object o)
void
extend(ThreddsMetadata.GeospatialCoverage gc)
LatLonRect
getBoundingBox()
ThreddsMetadata.Range
getEastWestRange()
double
getHeightExtent()
double
getHeightResolution()
double
getHeightStart()
String
getHeightUnits()
double
getLatExtent()
double
getLatNorth()
double
getLatResolution()
double
getLatSouth()
double
getLatStart()
String
getLatUnits()
double
getLonEast()
double
getLonExtent()
double
getLonResolution()
double
getLonStart()
String
getLonUnits()
double
getLonWest()
List<ThreddsMetadata.Vocab>
getNames()
ThreddsMetadata.Range
getNorthSouthRange()
ThreddsMetadata.Range
getUpDownRange()
String
getZPositive()
boolean
getZPositiveUp()
int
hashCode()
Override Object.hashCode() to implement equals.boolean
isEmpty()
boolean
isGlobal()
boolean
isValid()
void
setBoundingBox(LatLonRect bb)
void
setGlobal(boolean isGlobal)
Set isGlobalvoid
setHeightExtent(double size)
Set height extentvoid
setHeightResolution(double resolution)
Set height resolutionvoid
setHeightStart(double start)
Set starting heightvoid
setHeightUnits(String units)
Set height unitsvoid
setLatExtent(double size)
Set latitude extentvoid
setLatResolution(double resolution)
Set latitude resolutionvoid
setLatStart(double start)
Set starting latitudevoid
setLatUnits(String units)
Set latitude unitsvoid
setLonExtent(double size)
Set longitude extentvoid
setLonResolution(double resolution)
Set longitude resolutionvoid
setLonStart(double start)
Set starting longitudevoid
setLonUnits(String units)
Set longitude unitsvoid
setVertical(double start, double end, double resolution, String units, boolean isPositiveUp)
void
setVertical(CoordinateAxis1D vaxis)
void
setZPositive(String positive)
void
setZPositiveUp(boolean positive)
void
toXML(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 LatLonRect getBoundingBox()
-
setBoundingBox
public void setBoundingBox(LatLonRect bb)
-
setVertical
public void setVertical(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
-
-