org.geotools.arcsde.gce
Class ArcSDERasterFormat

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

public final class ArcSDERasterFormat
extends AbstractGridFormat
implements 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)
Module:

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

Field Detail

LOGGER

protected static final Logger LOGGER
Method Detail

getInstance

public static ArcSDERasterFormat getInstance()

getReader

public AbstractGridCoverage2DReader 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 - 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(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 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.
See Also:
AbstractGridFormat.getWriter(Object)

accepts

public boolean accepts(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 String getName()
Specified by:
getName in interface Format
Overrides:
getName in class AbstractGridFormat
See Also:
Format.getName()

getDescription

public String getDescription()
Specified by:
getDescription in interface Format
Overrides:
getDescription in class AbstractGridFormat
See Also:
Format.getDescription()

getVendor

public String getVendor()
Specified by:
getVendor in interface Format
Overrides:
getVendor in class AbstractGridFormat
See Also:
Format.getVendor()

getDocURL

public String getDocURL()
Specified by:
getDocURL in interface Format
Overrides:
getDocURL in class AbstractGridFormat
See Also:
Format.getDocURL()

getVersion

public String getVersion()
Specified by:
getVersion in interface 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()

sdeURLToConnectionConfig

public static ArcSDEDataStoreConfig sdeURLToConnectionConfig(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-2009 Geotools. All Rights Reserved.