org.geotools.gce.imagemosaic.jdbc
Class ImageMosaicJDBCReader
Object
AbstractGridCoverage2DReader
ImageMosaicJDBCReader
- All Implemented Interfaces:
- GridCoverageReader
public class ImageMosaicJDBCReader
- extends AbstractGridCoverage2DReader
This reader is responsible for providing access to images and image pyramids
stored in a JDBC datbase as tiles.
All jdbc databases which are able to handle blobs are supported.
Additonally, spatial extensions for mysql,postgis,db2 and oracle are
supported
- Since:
- 2.5
- Author:
- mcr
- Module:
modules/plugin/imagemosaic-jdbc (gt-imagemosaic-jdbc.jar)
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, dispose, finalize, getCrs, getCurrentSubname, getGridCoverageCount, getInfo, getMetadataNames, getMetadataValue, getOriginalEnvelope, getOriginalGridRange, getOriginalGridToWorld, getResolution, getSource, hasMoreGridCoverages, listSubNames, setReadParams, skip |
operationFactory
protected static final CoordinateOperationFactory operationFactory
DEFAULT_IMAGE_TYPE
protected static int DEFAULT_IMAGE_TYPE
ImageMosaicJDBCReader
public ImageMosaicJDBCReader(Object source,
Hints uHints)
throws IOException,
MalformedURLException
- Parameters:
source
- The source object.uHints
-
- Throws:
IOException
MalformedURLException
ImageMosaicJDBCReader
public ImageMosaicJDBCReader(Object source)
throws IOException
- Constructor.
- Parameters:
source
- The source object.
- Throws:
IOException
UnsupportedEncodingException
getFormat
public Format getFormat()
read
public GridCoverage2D read(GeneralParameterValue[] params)
throws IOException
- Description copied from class:
AbstractGridCoverage2DReader
- Read the current grid coverage from the stream.
Example:
The method AbstractGridCoverage2DReader.hasMoreGridCoverages()
should be invoked first in order to verify that a
coverage is available.
- Specified by:
read
in interface GridCoverageReader
- Specified by:
read
in class AbstractGridCoverage2DReader
- Parameters:
params
- Optional parameters matching Format.getReadParameters()
.
- Returns:
- a grid coverage from the input source.
- Throws:
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.
Copyright © 1996-2009 Geotools. All Rights Reserved.