org.geotools.gce.imagemosaic
Class ImageMosaicReader
Object
AbstractGridCoverage2DReader
ImageMosaicReader
- All Implemented Interfaces:
- GridCoverageReader
public final class ImageMosaicReader
- extends AbstractGridCoverage2DReader
- implements GridCoverageReader
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.
- Since:
- 2.3
- Author:
- Simone Giannecchini, GeoSolutions S.A.S
Fields inherited from class AbstractGridCoverage2DReader |
closeMe, coverageFactory, coverageName, crs, demColors, EPS, gzipped, highestRes, hints, inStream, numOverviews, originalEnvelope, originalGridRange, overViewResolutions, raster2Model, source |
Methods inherited from class AbstractGridCoverage2DReader |
createImageCoverage, createImageCoverage, decimationOnReadingControl, finalize, getCrs, getCurrentSubname, getInfo, getMetadataNames, getMetadataValue, getOriginalEnvelope, getOriginalGridRange, getOriginalGridToWorld, getResolution, getSource, hasMoreGridCoverages, listSubNames, setReadParams, setReadParams, skip |
Methods inherited from interface GridCoverageReader |
getCurrentSubname, getMetadataNames, getMetadataValue, getSource, hasMoreGridCoverages, listSubNames, skip |
ImageMosaicReader
public ImageMosaicReader(Object source,
Hints uHints)
throws IOException
- Constructor.
- Parameters:
source
- The source object.
- Throws:
IOException
UnsupportedEncodingException
ImageMosaicReader
public ImageMosaicReader(Object source)
throws IOException
- Constructor.
- Parameters:
source
- The source object.
- Throws:
IOException
UnsupportedEncodingException
getGridCoverageCount
public int getGridCoverageCount()
- Number of coverages for this reader is 1
- Overrides:
getGridCoverageCount
in class AbstractGridCoverage2DReader
- Returns:
- the number of coverages for this reader.
- See Also:
org.opengis.coverage.grid.GridCoverageReader#getGridCoverageCount()
dispose
public void dispose()
- Releases resources held by this reader.
- Specified by:
dispose
in interface GridCoverageReader
- Overrides:
dispose
in class AbstractGridCoverage2DReader
getFormat
public Format getFormat()
- Specified by:
getFormat
in interface GridCoverageReader
read
public GridCoverage read(GeneralParameterValue[] params)
throws IOException
- Specified by:
read
in interface GridCoverageReader
- Throws:
IOException
Copyright © 1996-2009 Geotools. All Rights Reserved.