org.geotools.arcsde.raster.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)

Field Summary
protected static Logger LOGGER
           
 
Fields inherited from class AbstractGridFormat
BACKGROUND_COLOR, DECIMATION_POLICY, ELEVATION, GEOTOOLS_WRITE_PARAMS, INPUT_TRANSPARENT_COLOR, mInfo, OVERVIEW_POLICY, PROGRESS_LISTENER, READ_GRIDGEOMETRY2D, readParameters, SUGGESTED_TILE_SIZE, TILE_SIZE_SEPARATOR, TIME, USE_JAI_IMAGEREAD, writeParameters
 
Method Summary
 boolean accepts(Object input, Hints hints)
          Tells me if this Format can read the provided input.
static String createRasterURL(ArcSDEConnectionConfig config, String rasterName)
           
 GeoToolsWriteParams getDefaultImageIOWriteParameters()
          Retrieves the default instance for the ArcSDERasterFormat of the GeoToolsWriteParams to control the writing process.
 String getDescription()
          Description of the file format.
 String getDocURL()
          Documentation URL for the format.
static ArcSDERasterFormat getInstance()
           
 String getName()
          Name of the file format.
 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()
          Vendor or agency for the format.
 String getVersion()
          Version number of the format.
 GridCoverageWriter getWriter(Object destination)
          Retrieves a GridCoverageWriter suitable for writing to the provided destination with this format.
 GridCoverageWriter getWriter(Object destination, Hints hints)
          Call the accepts() method before asking for a writer to determine if the current object is supported.
static ArcSDEConnectionConfig sdeURLToConnectionConfig(StringBuffer sdeUrl)
           
 
Methods inherited from class AbstractGridFormat
accepts, 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,
                       Hints hints)
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()
Description copied from interface: Format
Name of the file format.

Specified by:
getName in interface Format
Overrides:
getName in class AbstractGridFormat
See Also:
Format.getName()

getDescription

public String getDescription()
Description copied from interface: Format
Description of the file format. If no description, the value will be null.

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

getVendor

public String getVendor()
Description copied from interface: Format
Vendor or agency for the format.

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

getDocURL

public String getDocURL()
Description copied from interface: Format
Documentation URL for the format.

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

getVersion

public String getVersion()
Description copied from interface: Format
Version number of the format.

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()

createRasterURL

public static String createRasterURL(ArcSDEConnectionConfig config,
                                     String rasterName)

sdeURLToConnectionConfig

public static ArcSDEConnectionConfig 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

getWriter

public GridCoverageWriter getWriter(Object destination,
                                    Hints hints)
Description copied from class: AbstractGridFormat
Call the accepts() method before asking for a writer to determine if the current object is supported.

Specified by:
getWriter in class AbstractGridFormat
Parameters:
destination - the destination object to write a WorldImage to
hints - Hints to control the internal machinery.
Returns:
a new WorldImageWriter for the destination


Copyright © 1996-2014 Geotools. All Rights Reserved.