|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.coverage.grid.io.AbstractGridCoverage2DReader
org.geotools.gce.imagemosaic.ImageMosaicReader
public final class ImageMosaicReader
This reader is responsible for providing access to mosaic of georeferenced images. Citing JAI documentation: The "Mosaic" operation creates a mosaic of two or more source images. This operation could be used for example to assemble a set of overlapping geospatially rectified images into a contiguous image. It could also be used to create a montage of photographs such as a panorama. All source images are assumed to have been geometrically mapped into a common coordinate space. The origin (minX, minY) of each image is therefore taken to represent the location of the respective image in the common coordinate system of the sour ce images. This coordinate space will also be that of the destination image. All source images must have the same data type and sample size for all bands and have the same number of bands as color components. The destination will have the same data type, sample size, and number of bands and color components as the sources.
Field Summary |
---|
Fields inherited from class org.geotools.coverage.grid.io.AbstractGridCoverage2DReader |
---|
closeMe, coverageFactory, coverageName, crs, demColors, EPS, gzipped, highestRes, hints, inStream, numOverviews, originalEnvelope, originalGridRange, overViewResolutions, raster2Model, source |
Constructor Summary | |
---|---|
ImageMosaicReader(java.lang.Object source)
Constructor. |
|
ImageMosaicReader(java.lang.Object source,
Hints uHints)
Constructor. |
Method Summary | |
---|---|
void |
dispose()
Releases resources held by this reader. |
org.opengis.coverage.grid.Format |
getFormat()
|
int |
getGridCoverageCount()
Number of coverages for this reader is 1 |
GridCoverage2D |
read(org.opengis.parameter.GeneralParameterValue[] params)
Read the current grid coverage from the stream. |
Methods inherited from class org.geotools.coverage.grid.io.AbstractGridCoverage2DReader |
---|
createImageCoverage, createImageCoverage, decimationOnReadingControl, finalize, getCrs, getCurrentSubname, getInfo, getMetadataNames, getMetadataValue, getOriginalEnvelope, getOriginalGridRange, getOriginalGridToWorld, getResolution, getSource, hasMoreGridCoverages, listSubNames, setReadParams, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opengis.coverage.grid.GridCoverageReader |
---|
getCurrentSubname, getMetadataNames, getMetadataValue, getSource, hasMoreGridCoverages, listSubNames, skip |
Constructor Detail |
---|
public ImageMosaicReader(java.lang.Object source, Hints uHints) throws java.io.IOException
source
- The source object.
java.io.IOException
java.io.UnsupportedEncodingException
public ImageMosaicReader(java.lang.Object source) throws java.io.IOException
source
- The source object.
java.io.IOException
java.io.UnsupportedEncodingException
Method Detail |
---|
public int getGridCoverageCount()
getGridCoverageCount
in class AbstractGridCoverage2DReader
org.opengis.coverage.grid.GridCoverageReader#getGridCoverageCount()
public void dispose()
dispose
in interface org.opengis.coverage.grid.GridCoverageReader
dispose
in class AbstractGridCoverage2DReader
public org.opengis.coverage.grid.Format getFormat()
getFormat
in interface org.opengis.coverage.grid.GridCoverageReader
public GridCoverage2D read(org.opengis.parameter.GeneralParameterValue[] params) throws java.io.IOException
AbstractGridCoverage2DReader
Example:
The method AbstractGridCoverage2DReader.hasMoreGridCoverages()
should be invoked first in order to verify that a
coverage is available.
read
in interface org.opengis.coverage.grid.GridCoverageReader
read
in class AbstractGridCoverage2DReader
params
- Optional parameters matching Format.getReadParameters()
.
java.io.IOException
- if a read operation failed for some other input/output reason, including
FileNotFoundException
if no file with the given name
can be
found, or IIOException
if an error was thrown by the
underlying image library.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |