org.geotools.arcsde.raster.gce
Class ArcSDERasterFormat

java.lang.Object
  extended by org.geotools.coverage.grid.io.AbstractGridFormat
      extended by org.geotools.arcsde.raster.gce.ArcSDERasterFormat
All Implemented Interfaces:
org.opengis.coverage.grid.Format

public final class ArcSDERasterFormat
extends AbstractGridFormat
implements org.opengis.coverage.grid.Format

An implementation of the ArcSDE Raster Format. Based on the ArcGrid module.

Author:
Saul Farber (saul.farber), jeichar, Simone Giannecchini (simboss), Gabriel Roldan (OpenGeo)

Field Summary
protected static java.util.logging.Logger LOGGER
           
 
Fields inherited from class org.geotools.coverage.grid.io.AbstractGridFormat
GEOTOOLS_WRITE_PARAMS, mInfo, OVERVIEW_POLICY, READ_GRIDGEOMETRY2D, readParameters, USE_JAI_IMAGEREAD, writeParameters
 
Method Summary
 boolean accepts(java.lang.Object input)
          Tells me if this Format can read the provided input.
static java.lang.String createRasterURL(ArcSDEConnectionConfig config, java.lang.String rasterName)
           
 GeoToolsWriteParams getDefaultImageIOWriteParameters()
          Retrieves the default instance for the ArcSDERasterFormat of the GeoToolsWriteParams to control the writing process.
 java.lang.String getDescription()
           
 java.lang.String getDocURL()
           
static ArcSDERasterFormat getInstance()
           
 java.lang.String getName()
           
 AbstractGridCoverage2DReader getReader(java.lang.Object source)
          Gets a GridCoverageReader for this format able to create coverages out of the source object.
 AbstractGridCoverage2DReader getReader(java.lang.Object source, Hints hints)
          Gets a GridCoverageReader for this format able to create coverages out of the source object using the provided hints.
 java.lang.String getVendor()
           
 java.lang.String getVersion()
           
 org.opengis.coverage.grid.GridCoverageWriter getWriter(java.lang.Object destination)
          Retrieves a GridCoverageWriter suitable for writing to the provided destination with this format.
static ArcSDEConnectionConfig sdeURLToConnectionConfig(java.lang.StringBuffer sdeUrl)
           
 
Methods inherited from class org.geotools.coverage.grid.io.AbstractGridFormat
equals, getDefaultCRS, getReadParameters, getWriteParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opengis.coverage.grid.Format
getReadParameters, getWriteParameters
 

Field Detail

LOGGER

protected static final java.util.logging.Logger LOGGER
Method Detail

getInstance

public static ArcSDERasterFormat getInstance()

getReader

public AbstractGridCoverage2DReader getReader(java.lang.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 - either a String or File instance representing the connection URL
Returns:
A reader for this Format or null.
See Also:
AbstractGridFormat.getReader(Object source)

getReader

public AbstractGridCoverage2DReader getReader(java.lang.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 - either a String or File instance representing the connection URL
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)

getWriter

public org.opengis.coverage.grid.GridCoverageWriter getWriter(java.lang.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.
See Also:
AbstractGridFormat.getWriter(Object)

accepts

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

Specified by:
accepts in class AbstractGridFormat
Parameters:
source - either a String or File instance representing the connection URL
Returns:
True if this format can read this object, False otherwise.
See Also:
AbstractGridFormat.accepts(Object input)

getName

public java.lang.String getName()
Specified by:
getName in interface org.opengis.coverage.grid.Format
Overrides:
getName in class AbstractGridFormat
See Also:
Format.getName()

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface org.opengis.coverage.grid.Format
Overrides:
getDescription in class AbstractGridFormat
See Also:
Format.getDescription()

getVendor

public java.lang.String getVendor()
Specified by:
getVendor in interface org.opengis.coverage.grid.Format
Overrides:
getVendor in class AbstractGridFormat
See Also:
Format.getVendor()

getDocURL

public java.lang.String getDocURL()
Specified by:
getDocURL in interface org.opengis.coverage.grid.Format
Overrides:
getDocURL in class AbstractGridFormat
See Also:
Format.getDocURL()

getVersion

public java.lang.String getVersion()
Specified by:
getVersion in interface org.opengis.coverage.grid.Format
Overrides:
getVersion in class AbstractGridFormat
See Also:
Format.getVersion()

getDefaultImageIOWriteParameters

public GeoToolsWriteParams getDefaultImageIOWriteParameters()
Retrieves the default instance for the ArcSDERasterFormat of the GeoToolsWriteParams to control the writing process.

Specified by:
getDefaultImageIOWriteParameters in class AbstractGridFormat
Returns:
a default instance for the ArcSDERasterFormat of the GeoToolsWriteParams to control the writing process.
See Also:
AbstractGridFormat.getDefaultImageIOWriteParameters()

createRasterURL

public static java.lang.String createRasterURL(ArcSDEConnectionConfig config,
                                               java.lang.String rasterName)

sdeURLToConnectionConfig

public static ArcSDEConnectionConfig sdeURLToConnectionConfig(java.lang.StringBuffer sdeUrl)
Parameters:
sdeUrl - - A StringBuffer containing a string of form 'sde://user:pass@sdehost:[port]/[dbname]
Returns:
a ConnectionConfig object representing these parameters


Copyright © 1996-2010 Geotools. All Rights Reserved.