|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DiscreteCoordinateSystemAxis
Interface for coordinate systems axes having a finite number of discrete ordinate values.
This interface is sometime used for axes associated to a grid coverage, for example in the
NetCDF file format. Instances can be created by DiscreteReferencingFactory.
Note:
The services provided by DiscreteCoordinateSystemAxis are redundant with
the service provided by the grid to CRS transform associated with grid geometries.
However this interface is defined as a more convenient way to access irregular ordinate values
on independent axes, for example a list of time instants on the temporal axis.
CoordinateSystemAxis,
GridGeometry.getGridToCRS()
| coverage/geotk-coverage (download) | View source code for this class |
| Method Summary | |
|---|---|
Comparable<?> |
getOrdinateAt(int index)
Returns the ordinate value at the given index. |
Range<?> |
getOrdinateRangeAt(int index)
Returns the range of ordinate values at the given index. |
int |
length()
Returns the number of ordinate values. |
| Method Detail |
|---|
int length()
Comparable<?> getOrdinateAt(int index)
throws IndexOutOfBoundsException
Number or Date.
index - The index at which to return the ordinate value.
Number,
Date or String.
IndexOutOfBoundsException - If the given index is outside the
[0 … length-1] range.
Range<?> getOrdinateRangeAt(int index)
throws IndexOutOfBoundsException,
UnsupportedOperationException
index±1 to "belonging to" the ordinate value referenced by index.
The value returned by getOrdinateAt(int) is typically in the middle of the range
returned by this method for the same index, but not necessarily.
index - The index at which to return the range of ordinate values.
IndexOutOfBoundsException - If the given index is outside the
[0 … length-1] range.
UnsupportedOperationException - if the axis is not numeric.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||