|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides access to an OpenGIS coverage.
The essential property of coverage is to be able to generate a value for any point
within its domain. How coverage is represented internally is not a concern.
For example consider the following different internal representations of coverage:
CV_SampleDimension
for each sample
dimension in the coverage.
Method Summary | |
java.lang.Object |
evaluate(PT_CoordinatePoint point)
Return the value vector for a given point in the coverage. |
boolean[] |
evaluateAsBoolean(PT_CoordinatePoint point)
Return a sequence of Boolean values for a given point in the coverage. |
byte[] |
evaluateAsByte(PT_CoordinatePoint point)
Return a sequence of unsigned byte values for a given point in the coverage. |
double[] |
evaluateAsDouble(PT_CoordinatePoint point)
Return a sequence of double values for a given point in the coverage. |
int[] |
evaluateAsInteger(PT_CoordinatePoint point)
Return a sequence of integer values for a given point in the coverage. |
CS_CoordinateSystem |
getCoordinateSystem()
This specifies the coordinate system used when accessing a coverage or grid coverage with the evaluate methods. |
java.lang.String[] |
getDimensionNames()
The names of each dimension in the coverage. |
PT_Envelope |
getEnvelope()
The bounding box for the coverage domain in coordinate system coordinates. |
java.lang.String[] |
getMetadataNames()
List of metadata keywords for a coverage. |
java.lang.String |
getMetadataValue(java.lang.String name)
Retrieve the metadata value for a given metadata name. |
int |
getNumSampleDimensions()
The number of sample dimensions in the coverage. |
int |
getNumSources()
Number of grid coverages which the grid coverage was derived from. |
CV_SampleDimension |
getSampleDimension(int index)
Retrieve sample dimension information for the coverage. |
GC_GridCoverage |
getSource(int sourceDataIndex)
Returns the source data for a grid coverage. |
Method Detail |
public int getNumSampleDimensions() throws java.rmi.RemoteException
java.rmi.RemoteException
- if a remote method call failed.public java.lang.String[] getDimensionNames() throws java.rmi.RemoteException
java.rmi.RemoteException
- if a remote method call failed.public int getNumSources() throws java.rmi.RemoteException
java.rmi.RemoteException
- if a remote method call failed.public java.lang.String[] getMetadataNames() throws java.rmi.RemoteException
java.rmi.RemoteException
- if a remote method call failed.public CS_CoordinateSystem getCoordinateSystem() throws java.rmi.RemoteException
evaluate
methods. It is also the coordinate
system of the coordinates used with the math transform (see gridToCoordinateSystem
).
This coordinate system is usually different than the grid coordinate system
of the grid. grid coverage can be accessed (re-projected) with new coordinate
system with the GP_GridCoverageProcessor
component.
In this case, a new instance of a grid coverage is created.
null
.
The gridToCoordinateSystem
) attribute should also be null
if the coordinate system is null
.
evaluate
methods.
java.rmi.RemoteException
- if a remote method call failed.public PT_Envelope getEnvelope() throws java.rmi.RemoteException
If a grid coverage does not have any associated coordinate system, the minimum and maximum coordinate points for the envelope will be empty sequences.(Minimum row - 0.5, Minimum column - 0.5) for the minimum coordinates (Maximum row - 0.5, Maximum column - 0.5) for the maximum coordinates
java.rmi.RemoteException
- if a remote method call failed.public CV_SampleDimension getSampleDimension(int index) throws java.rmi.RemoteException
index
- Index for sample dimension to retrieve. Indices are numbered 0 to (n-1).
java.rmi.RemoteException
- if a remote method call failed.public GC_GridCoverage getSource(int sourceDataIndex) throws java.rmi.RemoteException
GC_GridCoverage
was produced from an underlying dataset
(by createFromName
or createFromSubName
for
instance) the getNumSources()
method should returns zero, and this
method should not be called.
If the GC_GridCoverage}
was produced using
{link org.opengis.gp.GP_GridCoverageProcessor} then it should return the source
grid coverage of the one used as input to GP_GridCoverageProcessor
.
In general the source() method is intended to return the original
GC_GridCoverage
on which it depends.
This is intended to allow applications to establish what GC_GridCoverage
s
will be affected when others are updated, as well as to trace back to the "raw data".
sourceDataIndex
- Source grid coverage index. Indexes start at 0.
java.rmi.RemoteException
- if a remote method call failed.public java.lang.String getMetadataValue(java.lang.String name) throws java.rmi.RemoteException
name
- Metadata keyword for which to retrieve data.
java.rmi.RemoteException
- if a remote method call failed.public java.lang.Object evaluate(PT_CoordinatePoint point) throws java.rmi.RemoteException
getCoordinateSystem()
).
point
- Point at which to find the grid values.
java.rmi.RemoteException
- if a remote method call failed.public boolean[] evaluateAsBoolean(PT_CoordinatePoint point) throws java.rmi.RemoteException
point
- Point at which to find the coverage values.
java.rmi.RemoteException
- if a remote method call failed.public byte[] evaluateAsByte(PT_CoordinatePoint point) throws java.rmi.RemoteException
point
- Point at which to find the coverage values.
java.rmi.RemoteException
- if a remote method call failed.public int[] evaluateAsInteger(PT_CoordinatePoint point) throws java.rmi.RemoteException
point
- Point at which to find the grid values.
java.rmi.RemoteException
- if a remote method call failed.public double[] evaluateAsDouble(PT_CoordinatePoint point) throws java.rmi.RemoteException
point
- Point at which to find the grid values.
java.rmi.RemoteException
- if a remote method call failed.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |