@UML(identifier="CV_GridCoordinates", specification=ISO_19123) public interface GridCoordinates extends Cloneable
Modifier and Type | Method and Description |
---|---|
int |
getCoordinateValue(int dimension)
Returns the coordinate value at the specified dimension.
|
int[] |
getCoordinateValues()
Returns one integer value for each dimension of the grid.
|
int |
getDimension()
Returns the number of dimensions.
|
void |
setCoordinateValue(int dimension,
int value)
Sets the coordinate value at the specified dimension (optional operation).
|
@Extension int getDimension()
getCoordinateValues().length
. It is provided for efficienty.@UML(identifier="coordValues", obligation=MANDATORY, specification=ISO_19123) int[] getCoordinateValues()
Grid#getAxisNames
. The value of a
single coordinate shall be the number of offsets from the origin of the grid in the direction
of a specific axis.GridCoordinates
object.@Extension int getCoordinateValue(int dimension) throws IndexOutOfBoundsException
getCoordinateValues()[i]
. It is provided for efficienty.dimension
- The dimension for which to obtain the coordinate value.IndexOutOfBoundsException
- If the given index is negative or is equals or greater than
the grid dimension.@Extension void setCoordinateValue(int dimension, int value) throws IndexOutOfBoundsException, UnsupportedOperationException
dimension
- The dimension for which to set the coordinate value.value
- The new value.IndexOutOfBoundsException
- If the given index is negative or is equals or greater than
the grid dimension.UnsupportedOperationException
- if this grid coordinates is not modifiable.Copyright © 1996–2019 Geotools. All rights reserved.