| java.lang.Object org.geotools.image.io.metadata.MetadataAccessor org.geotools.image.io.metadata.ImageGeometry
ImageGeometry | public class ImageGeometry extends MetadataAccessor (Code) | | A
element in
. This class offers similar
service than
GridRange and
Envelope , except that the maximum value for
and
are inclusives.
The
child element is typically (but not always) initialized
to the following ranges:
However n-dimensional grid coverages may contains additional entries.
since: 2.4 version: $Id: ImageGeometry.java 26151 2007-07-04 18:54:48Z desruisseaux $ author: Martin Desruisseaux |
Method Summary | |
public void | addCoordinateRange(int minIndex, int maxIndex, double minValue, double maxValue) Adds the range of values for an envelope along a dimension. | public void | addCoordinateValues(int minIndex, double[] values) Adds coordinate values for an envelope along a dimension. | public NumberRange | getCoordinateRange(int dimension) Returns the range of coordinate values along the specified dimension. | public double[] | getCoordinateValues(int dimension) Returns the coordinate values along the specified dimension, or
null if none. | public int | getDimension() Returns the number of dimensions. | public NumberRange | getGridRange(int dimension) Returns the range of grid index along the specified dimension. | public String | getPixelOrientation() Returns the point in a pixel corresponding to the Earth location of the pixel. | public void | setCoordinateRange(int dimension, double minimum, double maximum) Set the envelope range along the specified dimension. | public void | setCoordinateValues(int dimension, double[] values) Set the envelope coordinate values along the specified dimension. | public void | setGridRange(int dimension, int minimum, int maximum) Set the grid range along the specified dimension. | public void | setPixelOrientation(String pixelOrientation) Set the pixel orientation to the specified value. |
addCoordinateRange | public void addCoordinateRange(int minIndex, int maxIndex, double minValue, double maxValue)(Code) | | Adds the range of values for an envelope along a dimension. Invoking this method
will increase the grid and envelope
by one.
The ranges should be added in the same order than
.
Parameters: minIndex - The minimal index value, inclusive. This is usually 0. Parameters: maxIndex - The maximal index value, inclusive. Parameters: minValue - The minimal coordinate value, inclusive. Parameters: maxValue - The maximal coordinate value, inclusive. See Also: ImageGeometry.addCoordinateValues |
addCoordinateValues | public void addCoordinateValues(int minIndex, double[] values)(Code) | | Adds coordinate values for an envelope along a dimension. Invoking this method
will increase the envelope
by one. This method
may be invoked in replacement of
ImageGeometry.addCoordinateRange when every cell
coordinates need to be specified explicitly.
Parameters: minIndex - The minimal index value, inclusive. This is usually 0. Parameters: values - The coordinate values. See Also: ImageGeometry.addCoordinateRange |
getCoordinateRange | public NumberRange getCoordinateRange(int dimension)(Code) | | Returns the range of coordinate values along the specified dimension. Note that range
,
or both may be null if no
"minimum" or
"maximum" attribute were found for the
"GridGeometry/Envelope/CoordinateValues" element.
Parameters: dimension - The dimension index, from 0 inclusive to ImageGeometry.getDimension exclusive. |
getCoordinateValues | public double[] getCoordinateValues(int dimension)(Code) | | Returns the coordinate values along the specified dimension, or
null if none.
This method returns a non-null values only if an array of was explicitly specified,
for example by a call to
ImageGeometry.setCoordinateValues .
Parameters: dimension - The dimension index, from 0 inclusive to ImageGeometry.getDimension exclusive. |
getDimension | public int getDimension()(Code) | | Returns the number of dimensions. If the
and
don't have the same dimension, then a warning
is logged and the smallest dimension is returned.
|
getGridRange | public NumberRange getGridRange(int dimension)(Code) | | Returns the range of grid index along the specified dimension. Note that range
,
or both may be null if no
"minimum" or
"maximum" attribute were found for the
"GridGeometry/GridRange/IndexRange" element.
Parameters: dimension - The dimension index, from 0 inclusive to ImageGeometry.getDimension exclusive. |
getPixelOrientation | public String getPixelOrientation()(Code) | | Returns the point in a pixel corresponding to the Earth location of the pixel. In the JAI
framework, this is typically the
corner.
In some OGC specifications, this is often the pixel
.
Parameters: pixelOrientation - The pixel orientation (usually "center" , "lower left" , "lower right" , "upper right" or "upper left" ), or null if unknown. See Also: PixelOrientation |
setCoordinateRange | public void setCoordinateRange(int dimension, double minimum, double maximum)(Code) | | Set the envelope range along the specified dimension.
Parameters: dimension - The dimension to set, from 0 inclusive to ImageGeometry.getDimension exclusive. Parameters: minimum - The minimum value along the specified dimension (inclusive). Parameters: maximum - The maximum value along the specified dimension (inclusive). |
setCoordinateValues | public void setCoordinateValues(int dimension, double[] values)(Code) | | Set the envelope coordinate values along the specified dimension. The minimum and
maximum coordinates will be determined from the specified array.
Parameters: dimension - The dimension to set, from 0 inclusive to ImageGeometry.getDimension exclusive. Parameters: values - The coordinate values. |
setGridRange | public void setGridRange(int dimension, int minimum, int maximum)(Code) | | Set the grid range along the specified dimension.
Parameters: dimension - The dimension to set, from 0 inclusive to ImageGeometry.getDimension exclusive. Parameters: minimum - The minimum value along the specified dimension (inclusive). Parameters: maximum - The maximum value along the specified dimension (inclusive). |
setPixelOrientation | public void setPixelOrientation(String pixelOrientation)(Code) | | Set the pixel orientation to the specified value. The pixel orientation gives the point
in a pixel corresponding to the Earth location of the pixel. In the JAI framework, this
is typically the
corner. In some OGC
specifications, this is often the pixel
.
Parameters: pixelOrientation - The pixel orientation (usually "center" , "lower left" , "lower right" , "upper right" or "upper left" ), or null if unknown. See Also: PixelOrientation |
Methods inherited from org.geotools.image.io.metadata.MetadataAccessor | protected int appendChild()(Code)(Java Doc) protected int childCount()(Code)(Java Doc) protected Date getDate(String attribute)(Code)(Java Doc) protected Double getDouble(String attribute)(Code)(Java Doc) protected double[] getDoubles(String attribute, boolean unique)(Code)(Java Doc) protected Integer getInteger(String attribute)(Code)(Java Doc) protected int[] getIntegers(String attribute, boolean unique)(Code)(Java Doc) protected String getString(String attribute)(Code)(Java Doc) protected Object getUserObject()(Code)(Java Doc) protected Object getUserObject(Class type) throws ClassCastException(Code)(Java Doc) protected void selectChild(int index) throws IndexOutOfBoundsException(Code)(Java Doc) protected void selectParent() throws NoSuchElementException(Code)(Java Doc) protected void setDate(String attribute, Date value)(Code)(Java Doc) protected void setDouble(String attribute, double value)(Code)(Java Doc) protected void setDoubles(String attribute, double[] values)(Code)(Java Doc) final void setEnum(String attribute, String value, Collection enums)(Code)(Java Doc) protected void setInteger(String attribute, int value)(Code)(Java Doc) protected void setIntegers(String attribute, int[] values)(Code)(Java Doc) protected void setString(String attribute, String value)(Code)(Java Doc) protected void setUserObject(Object value) throws UnsupportedImplementationException(Code)(Java Doc) protected boolean setWarningsEnabled(boolean enabled)(Code)(Java Doc) public String toString()(Code)(Java Doc) public static String trimFractionalPart(String value)(Code)(Java Doc) final void warning(String method, int key, Object value)(Code)(Java Doc) protected void warningOccurred(LogRecord record)(Code)(Java Doc)
|
|
|