org.geotools.gce.imagemosaic.jdbc
Class ImageMosaicJDBCReader
java.lang.Object
org.geotools.coverage.grid.io.AbstractGridCoverage2DReader
org.geotools.gce.imagemosaic.jdbc.ImageMosaicJDBCReader
- All Implemented Interfaces:
- org.opengis.coverage.grid.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 org.geotools.coverage.grid.io.AbstractGridCoverage2DReader |
closeMe, coverageFactory, coverageName, crs, demColors, EPS, gzipped, highestRes, hints, inStream, numOverviews, originalEnvelope, originalGridRange, overViewResolutions, raster2Model, source |
Method Summary |
org.opengis.coverage.grid.Format |
getFormat()
|
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, dispose, finalize, getCrs, getCurrentSubname, getGridCoverageCount, 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 |
operationFactory
protected static final org.opengis.referencing.operation.CoordinateOperationFactory operationFactory
DEFAULT_IMAGE_TYPE
protected static int DEFAULT_IMAGE_TYPE
ImageMosaicJDBCReader
public ImageMosaicJDBCReader(java.lang.Object source,
Hints uHints)
throws java.io.IOException,
java.net.MalformedURLException
- Parameters:
source
- The source object.uHints
-
- Throws:
java.io.IOException
java.net.MalformedURLException
ImageMosaicJDBCReader
public ImageMosaicJDBCReader(java.lang.Object source)
throws java.io.IOException
- Constructor.
- Parameters:
source
- The source object.
- Throws:
java.io.IOException
java.io.UnsupportedEncodingException
getFormat
public org.opengis.coverage.grid.Format getFormat()
read
public GridCoverage2D read(org.opengis.parameter.GeneralParameterValue[] params)
throws java.io.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 org.opengis.coverage.grid.GridCoverageReader
- Specified by:
read
in class AbstractGridCoverage2DReader
- Parameters:
params
- Optional parameters matching Format.getReadParameters()
.
- Returns:
- a grid coverage from the input source.
- Throws:
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.
Copyright © 1996-2010 Geotools. All Rights Reserved.