org.geotools.gce.imagemosaic.jdbc
Class ImageMosaicJDBCReader
Object
AbstractGridCoverage2DReader
ImageMosaicJDBCReader
- All Implemented Interfaces:
- GridCoverage2DReader, 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
Fields inherited from class AbstractGridCoverage2DReader |
closeMe, coverageFactory, coverageName, crs, gzipped, highestRes, hints, inStream, inStreamSPI, numOverviews, originalEnvelope, originalGridRange, overViewResolutions, raster2Model, source |
Fields inherited from interface GridCoverage2DReader |
ELEVATION_DOMAIN, ELEVATION_DOMAIN_MAXIMUM, ELEVATION_DOMAIN_MINIMUM, ELEVATION_DOMAIN_RESOLUTION, FILE_SOURCE_PROPERTY, HAS_ELEVATION_DOMAIN, HAS_TIME_DOMAIN, TIME_DOMAIN, TIME_DOMAIN_MAXIMUM, TIME_DOMAIN_MINIMUM, TIME_DOMAIN_RESOLUTION |
Methods inherited from class AbstractGridCoverage2DReader |
checkName, createImageCoverage, createImageCoverage, createImageCoverage, createImageCoverage, decimationOnReadingControl, decimationOnReadingControl, dispose, finalize, getCoordinateReferenceSystem, getCoordinateReferenceSystem, getCrs, getCurrentSubname, getDynamicParameters, getDynamicParameters, getGridCoverageCount, getGridCoverageNames, getHighestRes, getImageLayout, getImageLayout, getInfo, getMetadataNames, getMetadataNames, getMetadataValue, getMetadataValue, getNumOverviews, getNumOverviews, getOriginalEnvelope, getOriginalEnvelope, getOriginalGridRange, getOriginalGridRange, getOriginalGridToWorld, getOriginalGridToWorld, getOverviewGridEnvelope, getOverviewGridEnvelope, getReadingResolutions, getReadingResolutions, getResolution, getResolutionLevels, getResolutionLevels, getSource, hasMoreGridCoverages, listSubNames, read, setlayout, setLayout, setReadParams, 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()
- Description copied from interface:
GridCoverageReader
- Returns the format handled by this
GridCoverageReader
.
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 GridCoverage2DReader
- 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-2014 Geotools. All Rights Reserved.