|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.media.jai.PropertySourceImpl
org.geotools.cv.Coverage
org.geotools.coverage.Coverage
in the org.geotools.coverage package.
Base class of all coverage type. 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:
getCoordinateSystem().getDimension();getDimensionNames(java.util.Locale).length;getDimension();getSampleDimensions().length). The later
may be better understood as the number of bands for 2D grid coverage.
A coverage has a corresponding SampleDimension for each sample
dimension in the coverage.
getMetadataValue(...) method in this implementation.
OpenGIS's metadata are called "Properties" in Java Advanced Imaging.
Use PropertySourceImpl.getProperty(java.lang.String) instead.
CV_Coverage,
Serialized Form| Nested Class Summary | |
protected class |
Coverage.Export
Deprecated. Export a Geotools Coverage as an OpenGIS CV_Coverage object.
|
protected class |
Coverage.Renderable
Deprecated. Base class for renderable image view of a coverage. |
| Field Summary | |
protected CoordinateSystem |
coordinateSystem
Deprecated. The coordinate system, or null if there is none. |
| Fields inherited from class javax.media.jai.PropertySourceImpl |
cachedPropertyNames, properties, propertySources |
| Constructor Summary | |
protected |
Coverage(Coverage coverage)
Deprecated. Construct a new coverage with the same parameters than the specified coverage. |
protected |
Coverage(java.lang.String name,
CoordinateSystem coordinateSystem,
javax.media.jai.PropertySource source,
java.util.Map properties)
Deprecated. Construct a coverage using the specified coordinate system. |
| Method Summary | |
void |
dispose()
Deprecated. Provides a hint that a coverage will no longer be accessed from a reference in user space. |
boolean[] |
evaluate(CoordinatePoint coord,
boolean[] dest)
Deprecated. Returns a sequence of boolean values for a given point in the coverage. |
byte[] |
evaluate(CoordinatePoint coord,
byte[] dest)
Deprecated. Returns a sequence of byte values for a given point in the coverage. |
abstract double[] |
evaluate(CoordinatePoint coord,
double[] dest)
Deprecated. Returns a sequence of double values for a given point in the coverage. |
float[] |
evaluate(CoordinatePoint coord,
float[] dest)
Deprecated. Returns a sequence of float values for a given point in the coverage. |
int[] |
evaluate(CoordinatePoint coord,
int[] dest)
Deprecated. Returns a sequence of integer values for a given point in the coverage. |
CoordinateSystem |
getCoordinateSystem()
Deprecated. Returns the coordinate system. |
int |
getDimension()
Deprecated. Returns the dimension of the grid coverage. |
java.lang.String[] |
getDimensionNames(java.util.Locale locale)
Deprecated. Returns the names of each dimension in this coverage. |
Envelope |
getEnvelope()
Deprecated. Returns The bounding box for the coverage domain in coordinate system coordinates. |
java.lang.String |
getName(java.util.Locale locale)
Deprecated. Returns the coverage name, localized for the supplied locale. |
java.awt.image.renderable.RenderableImage |
getRenderableImage(int xAxis,
int yAxis)
Deprecated. Returns 2D view of this grid coverage as a renderable image. |
abstract SampleDimension[] |
getSampleDimensions()
Deprecated. Retrieve sample dimension information for the coverage. |
java.lang.String |
toString()
Deprecated. Returns a string repr?sentation of this coverage. |
| Methods inherited from class javax.media.jai.PropertySourceImpl |
getProperties, getProperty, getPropertyClass, getPropertyNames, getPropertyNames |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected final CoordinateSystem coordinateSystem
null if there is none.
| Constructor Detail |
protected Coverage(java.lang.String name,
CoordinateSystem coordinateSystem,
javax.media.jai.PropertySource source,
java.util.Map properties)
null, then the subclasses must override getDimension().
name - The coverage name.coordinateSystem - The coordinate system. This specifies the coordinate
system used when accessing a coverage or grid coverage with the
evaluate(...) methods.source - The source for this coverage, or null if none.
Source may be (but is not limited to) a PlanarImage or an
other Coverage object.properties - The set of properties for this coverage, or null if
there is none. "Properties" in Java Advanced Imaging is what
OpenGIS calls "Metadata". There is no getMetadataValue(...)
method in this implementation. Use PropertySourceImpl.getProperty(java.lang.String) instead. Keys may
be String or CaselessStringKey objects, while values may
be any Object.protected Coverage(Coverage coverage)
| Method Detail |
public java.lang.String getName(java.util.Locale locale)
locale - The desired locale, or null for a default locale.
public CoordinateSystem getCoordinateSystem()
evaluate(...) methods.
It is also the coordinate system of the coordinates used with the math transform
GridGeometry.getGridToCoordinateSystem(). This coordinate
system is usually different than the grid coordinate system of the grid. A grid
coverage can be accessed (re-projected) with new coordinate system with the
GridCoverageProcessor component.
In this case, a new instance of a grid coverage is created.
null.
The GridGeometry.gridToCoordinateSystem) attribute should also be
null if the coordinate system is null.
null if this coverage
does not have an associated coordinate system.CV_Coverage.getCoordinateSystem(),
GridGeometry.getGridToCoordinateSystem()public Envelope getEnvelope()
The default implementation returns the coordinate system envelope if there is one.(Minimum row - 0.5, Minimum column - 0.5) for the minimum coordinates (Maximum row - 0.5, Maximum column - 0.5) for the maximum coordinates
CV_Coverage.getEnvelope()public int getDimension()
CoordinateSystem.
getDimension in interface Dimensionedpublic java.lang.String[] getDimensionNames(java.util.Locale locale)
CoordinateSystem
axis names, or returns "x", "y"... if this coverage has no coordinate system.
locale - The desired locale, or null for the default locale.
getDimension().CV_Coverage.getDimensionNames()public abstract SampleDimension[] getSampleDimensions()
CV_Coverage.getNumSampleDimensions(),
CV_Coverage.getSampleDimension(int)
public boolean[] evaluate(CoordinatePoint coord,
boolean[] dest)
throws org.opengis.coverage.CannotEvaluateException
coord - The coordinate point where to evaluate.dest - An array in which to store values, or null to
create a new array. If non-null, this array must be at least
getSampleDimensions().length long.
dest array, or a newly created array if dest was null.
org.opengis.coverage.CannotEvaluateException - if the values can't be computed at the specified coordinate.
More specifically, PointOutsideCoverageException is thrown if the evaluation
failed because the input point has invalid coordinates.CV_Coverage.evaluateAsBoolean(org.opengis.pt.PT_CoordinatePoint)
public byte[] evaluate(CoordinatePoint coord,
byte[] dest)
throws org.opengis.coverage.CannotEvaluateException
coord - The coordinate point where to evaluate.dest - An array in which to store values, or null to
create a new array. If non-null, this array must be at least
getSampleDimensions().length long.
dest array, or a newly created array if dest was null.
org.opengis.coverage.CannotEvaluateException - if the values can't be computed at the specified coordinate.
More specifically, PointOutsideCoverageException is thrown if the evaluation
failed because the input point has invalid coordinates.CV_Coverage.evaluateAsInteger(org.opengis.pt.PT_CoordinatePoint)
public int[] evaluate(CoordinatePoint coord,
int[] dest)
throws org.opengis.coverage.CannotEvaluateException
coord - The coordinate point where to evaluate.dest - An array in which to store values, or null to
create a new array. If non-null, this array must be at least
getSampleDimensions().length long.
dest array, or a newly created array if dest was null.
org.opengis.coverage.CannotEvaluateException - if the values can't be computed at the specified coordinate.
More specifically, PointOutsideCoverageException is thrown if the evaluation
failed because the input point has invalid coordinates.CV_Coverage.evaluateAsInteger(org.opengis.pt.PT_CoordinatePoint)
public float[] evaluate(CoordinatePoint coord,
float[] dest)
throws org.opengis.coverage.CannotEvaluateException
coord - The coordinate point where to evaluate.dest - An array in which to store values, or null to
create a new array. If non-null, this array must be at least
getSampleDimensions().length long.
dest array, or a newly created array if dest was null.
org.opengis.coverage.CannotEvaluateException - if the values can't be computed at the specified coordinate.
More specifically, PointOutsideCoverageException is thrown if the evaluation
failed because the input point has invalid coordinates.
public abstract double[] evaluate(CoordinatePoint coord,
double[] dest)
throws org.opengis.coverage.CannotEvaluateException
coord - The coordinate point where to evaluate.dest - An array in which to store values, or null to
create a new array. If non-null, this array must be at least
getSampleDimensions().length long.
dest array, or a newly created array if dest was null.
org.opengis.coverage.CannotEvaluateException - if the values can't be computed at the specified coordinate.
More specifically, PointOutsideCoverageException is thrown if the evaluation
failed because the input point has invalid coordinates.CV_Coverage.evaluateAsDouble(org.opengis.pt.PT_CoordinatePoint)
public java.awt.image.renderable.RenderableImage getRenderableImage(int xAxis,
int yAxis)
xAxis - Dimension to use for x axis.yAxis - Dimension to use for y axis.
public void dispose()
dispose()
are undefined.
PlanarImage.dispose()public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||