|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.coverage.CoverageStack.Adapter
A convenience adapter class for wrapping a pre-loaded Coverage
into an
Element
object. This adapter provides basic implementation for all methods,
but they a require a fully constructed Coverage
object. Subclasses are strongly
encouraged to provides alternative implementation loading only the minimum amount of data
required for each method.
Field Summary | |
protected org.opengis.coverage.Coverage |
coverage
The wrapped coverage, or if not yet loaded. |
protected NumberRange |
range
Minimum and maximum z values for this element, or if not yet determined. |
Constructor Summary | |
CoverageStack.Adapter(org.opengis.coverage.Coverage coverage,
NumberRange range)
Constructs a new adapter for the specified coverage and z values. |
Method Summary | |
org.opengis.coverage.Coverage |
getCoverage(IIOListeners listeners)
Returns the coverage. |
org.opengis.spatialschema.geometry.Envelope |
getEnvelope()
Returns the coverage envelope. |
org.opengis.coverage.grid.GridGeometry |
getGridGeometry()
Returns the coverage grid geometry. |
java.lang.String |
getName()
Returns the coverage name. |
org.opengis.coverage.SampleDimension[] |
getSampleDimensions()
Returns the sample dimension for the coverage. |
NumberRange |
getZRange()
Returns the minimum and maximum z values for the coverage. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.opengis.coverage.Coverage coverage
getCoverage(org.geotools.image.io.IIOListeners)
method.
protected NumberRange range
getZRange()
method.
Constructor Detail |
public CoverageStack.Adapter(org.opengis.coverage.Coverage coverage, NumberRange range)
coverage
- The coverage to wrap. Can be only if this constructor
is invoked from a sub-class constructor.range
- The minimum and maximum z values for this element, or
to infers it from the last dimension in the coverage's
envelope.Method Detail |
public java.lang.String getName() throws java.io.IOException
AbstractCoverage
.
getName
in interface CoverageStack.Element
java.io.IOException
public NumberRange getZRange() throws java.io.IOException
getZRange
in interface CoverageStack.Element
java.io.IOException
- if an I/O operation was required but failed.public org.opengis.spatialschema.geometry.Envelope getEnvelope() throws java.io.IOException
getEnvelope
in interface CoverageStack.Element
java.io.IOException
- if an I/O operation was required but failed.public org.opengis.coverage.grid.GridGeometry getGridGeometry() throws java.io.IOException
GridCoverage
.
getGridGeometry
in interface CoverageStack.Element
java.io.IOException
- if an I/O operation was required but failed.public org.opengis.coverage.SampleDimension[] getSampleDimensions() throws java.io.IOException
getSampleDimensions
in interface CoverageStack.Element
java.io.IOException
- if an I/O operation was required but failed.public org.opengis.coverage.Coverage getCoverage(IIOListeners listeners) throws java.io.IOException
coverage
only when first needed. However, they are strongly encouraged to
override all other methods as well in order to load the minimum amount of data,
since all default implementations invoke .
getCoverage
in interface CoverageStack.Element
listeners
- Listeners to register to the image I/O reader,
if such a reader is going to be used.
java.io.IOException
- if a data loading was required but failed.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |