|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractGridCoverage2DReader
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 AbstractGridCoverage2DReader |
---|
closeMe, coverageFactory, coverageName, crs, demColors, EPS, gzipped, highestRes, hints, inStream, numOverviews, originalEnvelope, originalGridRange, overViewResolutions, raster2Model, source |
Constructor Summary | |
---|---|
ImageMosaicReader(Object source)
Constructor. |
|
ImageMosaicReader(Object source,
Hints uHints)
Constructor. |
Method Summary | |
---|---|
void |
dispose()
Releases resources held by this reader. |
Format |
getFormat()
|
int |
getGridCoverageCount()
Number of coverages for this reader is 1 |
GridCoverage2D |
read(GeneralParameterValue[] params)
Read the current grid coverage from the stream. |
Methods inherited from class Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface GridCoverageReader |
---|
getCurrentSubname, getMetadataNames, getMetadataValue, getSource, hasMoreGridCoverages, listSubNames, skip |
Constructor Detail |
---|
public ImageMosaicReader(Object source, Hints uHints) throws IOException
source
- The source object.
IOException
UnsupportedEncodingException
public ImageMosaicReader(Object source) throws IOException
source
- The source object.
IOException
UnsupportedEncodingException
Method Detail |
---|
public int getGridCoverageCount()
getGridCoverageCount
in class AbstractGridCoverage2DReader
org.opengis.coverage.grid.GridCoverageReader#getGridCoverageCount()
public void dispose()
dispose
in interface GridCoverageReader
dispose
in class AbstractGridCoverage2DReader
public Format getFormat()
getFormat
in interface GridCoverageReader
public GridCoverage2D read(GeneralParameterValue[] params) throws IOException
AbstractGridCoverage2DReader
Example:
The method AbstractGridCoverage2DReader.hasMoreGridCoverages()
should be invoked first in order to verify that a
coverage is available.
read
in interface GridCoverageReader
read
in class AbstractGridCoverage2DReader
params
- Optional parameters matching Format.getReadParameters()
.
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 |