|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectCoverageStack.Adapter
public static class CoverageStack.Adapter
A convenience adapter class for wrapping a pre-loaded Coverage
into an
CoverageStack.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 Coverage |
coverage
The wrapped coverage, or null if not yet loaded. |
protected NumberRange |
range
Minimum and maximum z values for this element, or null if not yet
determined. |
Constructor Summary | |
---|---|
CoverageStack.Adapter(Coverage coverage,
NumberRange range)
Constructs a new adapter for the specified coverage and z values. |
Method Summary | |
---|---|
Coverage |
getCoverage(IIOListeners listeners)
Returns the coverage. |
Envelope |
getEnvelope()
Returns the coverage envelope. |
GridGeometry |
getGridGeometry()
Returns the coverage grid geometry. |
String |
getName()
Returns the coverage name. |
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 Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Coverage coverage
null
if not yet loaded.
If null, the loading must be performed by the getCoverage(org.geotools.image.io.IIOListeners)
method.
protected NumberRange range
null
if not yet
determined. If null
, the range must be computed by the getZRange()
method.
Constructor Detail |
---|
public CoverageStack.Adapter(Coverage coverage, NumberRange range)
coverage
- The coverage to wrap. Can be null
only if this constructor
is invoked from a sub-class constructor.range
- The minimum and maximum z values for this element, or
null
to infers it from the last dimension in the coverage's
envelope.Method Detail |
---|
public String getName() throws IOException
AbstractCoverage
.
getName
in interface CoverageStack.Element
IOException
- if an I/O operation was required but failed.public NumberRange getZRange() throws IOException
getZRange
in interface CoverageStack.Element
IOException
- if an I/O operation was required but failed.public Envelope getEnvelope() throws IOException
getEnvelope
in interface CoverageStack.Element
IOException
- if an I/O operation was required but failed.public GridGeometry getGridGeometry() throws IOException
GridCoverage
.
getGridGeometry
in interface CoverageStack.Element
IOException
- if an I/O operation was required but failed.public SampleDimension[] getSampleDimensions() throws IOException
getSampleDimensions
in interface CoverageStack.Element
IOException
- if an I/O operation was required but failed.public Coverage getCoverage(IIOListeners listeners) throws 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(null)
.
getCoverage
in interface CoverageStack.Element
listeners
- Listeners to register to the image I/O reader,
if such a reader is going to be used.
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 |