org.geotools.gce.imagemosaic.jdbc
Class ImageMosaicJDBCFormat

Object
  extended by AbstractGridFormat
      extended by ImageMosaicJDBCFormat
All Implemented Interfaces:
Format

public class ImageMosaicJDBCFormat
extends AbstractGridFormat
implements Format

AbstractGridFormat sublass for controlling ImageMosaicJDBCReader creation. As the name says, it handles mosaicing georeferenced images and image pyramids, based on tiles stored in a JDBC database. The stored tiles in the database could have any format jai can decode.

Since:
2.5
Author:
mcr
Module:
modules/plugin/imagemosaic-jdbc (gt-imagemosaic-jdbc.jar)

Field Summary
static DefaultParameterDescriptor OUTPUT_TRANSPARENT_COLOR
          Control the transparency of the output coverage.
 
Fields inherited from class AbstractGridFormat
GEOTOOLS_WRITE_PARAMS, mInfo, OVERVIEW_POLICY, READ_GRIDGEOMETRY2D, readParameters, USE_JAI_IMAGEREAD, writeParameters
 
Constructor Summary
ImageMosaicJDBCFormat()
          Creates an instance and sets the metadata.
 
Method Summary
 boolean accepts(Object source)
          Tells me if this Format can read the provided input.
 GeoToolsWriteParams getDefaultImageIOWriteParameters()
          Throw an exception since this plugin is readonly.
 ImageMosaicJDBCReader getReader(Object source)
          Gets a GridCoverageReader for this format able to create coverages out of the source object.
 ImageMosaicJDBCReader getReader(Object source, Hints hints)
          Gets a GridCoverageReader for this format able to create coverages out of the source object using the provided hints.
static URL getURLFromSource(Object source)
           
 GridCoverageWriter getWriter(Object destination)
          Retrieves a GridCoverageWriter suitable for writing to the provided destination with this format.
 
Methods inherited from class AbstractGridFormat
equals, getDefaultCRS, getDescription, getDocURL, getName, getReadParameters, getVendor, getVersion, getWriteParameters
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface Format
getDescription, getDocURL, getName, getReadParameters, getVendor, getVersion, getWriteParameters
 

Field Detail

OUTPUT_TRANSPARENT_COLOR

public static final DefaultParameterDescriptor OUTPUT_TRANSPARENT_COLOR
Control the transparency of the output coverage.

Constructor Detail

ImageMosaicJDBCFormat

public ImageMosaicJDBCFormat()
Creates an instance and sets the metadata.

Method Detail

getURLFromSource

public static URL getURLFromSource(Object source)

getReader

public ImageMosaicJDBCReader getReader(Object source)
Description copied from class: AbstractGridFormat
Gets a GridCoverageReader for this format able to create coverages out of the source object.

In case this Format cannot reader the provided source object null is returned.

Specified by:
getReader in class AbstractGridFormat
Parameters:
source - The source object to parse.
Returns:
A reader for this Format or null.
See Also:
org.geotools.data.coverage.grid.AbstractGridFormat#getReader(Object)

getWriter

public GridCoverageWriter getWriter(Object destination)
Description copied from class: AbstractGridFormat
Retrieves a GridCoverageWriter suitable for writing to the provided destination with this format.

In case no writers are availaible null is returned.

Specified by:
getWriter in class AbstractGridFormat
Parameters:
destination - The destinatin where to write.
Returns:
A GridCoverageWriter suitable for writing to the provided destination with this format.

accepts

public boolean accepts(Object source)
Description copied from class: AbstractGridFormat
Tells me if this Format can read the provided input.

Specified by:
accepts in class AbstractGridFormat
Parameters:
source - The input object to test for suitablilty.
Returns:
True if this format can read this object, False otherwise.
See Also:
org.geotools.data.coverage.grid.AbstractGridFormat#accepts(Object input)

getReader

public ImageMosaicJDBCReader getReader(Object source,
                                       Hints hints)
Description copied from class: AbstractGridFormat
Gets a GridCoverageReader for this format able to create coverages out of the source object using the provided hints.

In case this Format cannot reader the provided source object null is returned.

Specified by:
getReader in class AbstractGridFormat
Parameters:
source - The source object to parse. *
hints - The Hints to use when trying to instantiate this reader.
Returns:
A reader for this Format or null.
See Also:
AbstractGridFormat.getReader(Object, Hints)

getDefaultImageIOWriteParameters

public GeoToolsWriteParams getDefaultImageIOWriteParameters()
Throw an exception since this plugin is readonly.

Specified by:
getDefaultImageIOWriteParameters in class AbstractGridFormat
Returns:
nothing.


Copyright © 1996-2010 Geotools. All Rights Reserved.