org.geotools.arcsde.raster.info
Class GatherCoverageMetadataCommand

java.lang.Object
  extended by org.geotools.arcsde.session.Command<RasterDatasetInfo>
      extended by org.geotools.arcsde.raster.info.GatherCoverageMetadataCommand

public class GatherCoverageMetadataCommand
extends Command<RasterDatasetInfo>

Session command to gather information for an ArcSDE Raster, such as dimensions, spatial extent, number of pyramid levels, etc; into a RasterDatasetInfo

Since:
2.5.8
Author:
Gabriel Roldan (OpenGeo)

Constructor Summary
GatherCoverageMetadataCommand(java.lang.String rasterTableName, boolean statisticsMandatory)
           
 
Method Summary
 RasterDatasetInfo execute(ISession session, SeConnection connection)
          Executed to operate on an SeConnection, a Command is scheduled for execution on a Session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GatherCoverageMetadataCommand

public GatherCoverageMetadataCommand(java.lang.String rasterTableName,
                                     boolean statisticsMandatory)
Method Detail

execute

public RasterDatasetInfo execute(ISession session,
                                 SeConnection connection)
                          throws SeException,
                                 java.io.IOException
Description copied from class: Command
Executed to operate on an SeConnection, a Command is scheduled for execution on a Session.

Please keep in mind that a Command should be short in duration; you are sharing this SeConnection with other threads.

Specified by:
execute in class Command<RasterDatasetInfo>
Parameters:
session - the Session the command is being executed inside
connection - the session's connection, used to interact with ArcSDE
Returns:
the result of the command execution, or null if the command is not meant to return anything (a command meant to return something should fail if not able to)
Throws:
java.io.IOException - if an exception occurs accessing the raster metadata
SeException
java.lang.IllegalArgumentException - if the raster has no CRS, contains no raster attributes, has no pyramids, no bands or no statistics


Copyright © 1996-2010 Geotools. All Rights Reserved.