📄 coverage.java
字号:
/** * Retrieve the metadata value for a given metadata name. * * @param name Metadata keyword for which to retrieve data. * @return the metadata value for a given metadata name. * @throws MetadataNameNotFoundException if there is no value for the specified metadata name. * @UML operation getMetadataValue * * @see #getMetadataNames * @see javax.media.jai.PropertySource#getProperty */ String getMetadataValue(String name) throws MetadataNameNotFoundException; /** * Return the value vector for a given point in the coverage. * A value for each sample dimension is included in the vector. * The default interpolation type used when accessing grid values for points * which fall between grid cells is nearest neighbor. * The coordinate system of the point is the same as the grid coverage coordinate * reference system (specified by the {@link #getCoordinateReferenceSystem} method). * * @param point Point at which to find the grid values. * @return The value vector for a given point in the coverage. * @throws PointOutsideCoverageException if the point is outside the coverage * {@linkplain #getEnvelope envelope}. * @throws CannotEvaluateException If the point can't be evaluate for some othe reason. * @UML operation evaluate * * @see Raster#getDataElements(int, int, Object) */ Object evaluate(DirectPosition point) throws CannotEvaluateException; /** * Return a sequence of boolean values for a given point in the coverage. * A value for each sample dimension is included in the sequence. * The default interpolation type used when accessing grid values for points which * fall between grid cells is nearest neighbor. * The coordinate reference system of the point is the same as the grid coverage * {@linkplain #getCoordinateReferenceSystem coordinate reference system}. * * @param point Point at which to find the coverage values. * @param destination An optionally preallocated array in which to store the values, * or <code>null</code> if none. * @return A sequence of boolean values for a given point in the coverage. * If <code>destination</code> was non-null, then it is returned. * Otherwise, a new array is allocated and returned. * @throws PointOutsideCoverageException if the point is outside the coverage * {@linkplain #getEnvelope envelope}. * @throws CannotEvaluateException if the point can't be evaluate for some othe reason. * @throws ArrayIndexOutOfBoundsException if the <code>destination</code> array is not null * and too small to hold the output. * @UML operation evaluateAsBoolean */ boolean[] evaluate(DirectPosition point, boolean[] destination) throws CannotEvaluateException, ArrayIndexOutOfBoundsException; /** * Return a sequence of unsigned byte values for a given point in the coverage. * A value for each sample dimension is included in the sequence. * The default interpolation type used when accessing grid values for points which * fall between grid cells is nearest neighbor. * The coordinate reference system of the point is the same as the grid coverage * {@linkplain #getCoordinateReferenceSystem coordinate reference system}. * * @param point Point at which to find the coverage values. * @param destination An optionally preallocated array in which to store the values, * or <code>null</code> if none. * @return A sequence of unsigned byte values for a given point in the coverage. * If <code>destination</code> was non-null, then it is returned. * Otherwise, a new array is allocated and returned. * @throws PointOutsideCoverageException if the point is outside the coverage * {@linkplain #getEnvelope envelope}. * @throws CannotEvaluateException if the point can't be evaluate for some othe reason. * @throws ArrayIndexOutOfBoundsException if the <code>destination</code> array is not null * and too small to hold the output. * @UML operation evaluateAsByte */ byte[] evaluate(DirectPosition point, byte[] destination) throws CannotEvaluateException, ArrayIndexOutOfBoundsException; /** * Return a sequence of integer values for a given point in the coverage. * A value for each sample dimension is included in the sequence. * The default interpolation type used when accessing grid values for points which * fall between grid cells is nearest neighbor. * The coordinate reference system of the point is the same as the grid coverage * {@linkplain #getCoordinateReferenceSystem coordinate reference system}. * * @param point Point at which to find the grid values. * @param destination An optionally preallocated array in which to store the values, * or <code>null</code> if none. * @return A sequence of integer values for a given point in the coverage. * If <code>destination</code> was non-null, then it is returned. * Otherwise, a new array is allocated and returned. * @throws PointOutsideCoverageException if the point is outside the coverage * {@linkplain #getEnvelope envelope}. * @throws CannotEvaluateException if the point can't be evaluate for some othe reason. * @throws ArrayIndexOutOfBoundsException if the <code>destination</code> array is not null * and too small to hold the output. * @UML operation evaluateAsInteger * * @see Raster#getPixel(int, int, int[]) */ int[] evaluate(DirectPosition point, int[] destination) throws CannotEvaluateException, ArrayIndexOutOfBoundsException; /** * Return a sequence of float values for a given point in the coverage. * A value for each sample dimension is included in the sequence. * The default interpolation type used when accessing grid values for points which * fall between grid cells is nearest neighbor. * The coordinate reference system of the point is the same as the grid coverage * {@linkplain #getCoordinateReferenceSystem coordinate reference system}. * * @param point Point at which to find the grid values. * @param destination An optionally preallocated array in which to store the values, * or <code>null</code> if none. * @return A sequence of float values for a given point in the coverage. * If <code>destination</code> was non-null, then it is returned. * Otherwise, a new array is allocated and returned. * @throws PointOutsideCoverageException if the point is outside the coverage * {@linkplain #getEnvelope envelope}. * @throws CannotEvaluateException if the point can't be evaluate for some othe reason. * @throws ArrayIndexOutOfBoundsException if the <code>destination</code> array is not null * and too small to hold the output. * * @see Raster#getPixel(int, int, float[]) */ double[] evaluate(DirectPosition point, float[] destination) throws CannotEvaluateException, ArrayIndexOutOfBoundsException; /** * Return a sequence of double values for a given point in the coverage. * A value for each sample dimension is included in the sequence. * The default interpolation type used when accessing grid values for points which * fall between grid cells is nearest neighbor. * The coordinate reference system of the point is the same as the grid coverage * {@linkplain #getCoordinateReferenceSystem coordinate reference system}. * * @param point Point at which to find the grid values. * @param destination An optionally preallocated array in which to store the values, * or <code>null</code> if none. * @return A sequence of double values for a given point in the coverage. * If <code>destination</code> was non-null, then it is returned. * Otherwise, a new array is allocated and returned. * @throws PointOutsideCoverageException if the point is outside the coverage * {@linkplain #getEnvelope envelope}. * @throws CannotEvaluateException If the point can't be evaluate for some othe reason. * @throws ArrayIndexOutOfBoundsException if the <code>destination</code> array is not null * and too small to hold the output. * @UML operation evaluateAsDouble * * @see Raster#getPixel(int, int, double[]) */ double[] evaluate(DirectPosition point, double[] destination) throws CannotEvaluateException, ArrayIndexOutOfBoundsException; /** * Returns 2D view of this coverage as a renderable image. * This optional operation allows interoperability with * <A HREF="http://java.sun.com/products/java-media/2D/">Java2D</A>. * If this coverage is a {@link org.opengis.coverage.grid.GridCoverage} backed * by a {@link java.awt.image.RenderedImage}, the underlying image can be obtained * with: * * <code>getRenderableImage(0,1).{@linkplain RenderableImage#createDefaultRendering() * createDefaultRendering()}</code> * * @param xAxis Dimension to use for the <var>x</var> axis. * @param yAxis Dimension to use for the <var>y</var> axis. * @return A 2D view of this coverage as a renderable image. * @throws UnsupportedOperationException if this optional operation is not supported. * @throws IndexOutOfBoundsException if <code>xAxis</code> or <code>yAxis</code> is out of bounds. */ RenderableImage getRenderableImage(int xAxis, int yAxis) throws UnsupportedOperationException, IndexOutOfBoundsException;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -