|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IGpDispatch
Provides access to the properties and methods of a Geoprocessor object.
The GPDispatch object is a coarse grainded ArcObject that permits geoprocessing tools and environments to be used in a scripting language. This object supports the COM IDispatch object. This object may also be used in COM-compliant languages such as Visual Basic for Applications (VBA), and Visual Basic. With ArcGIS 9.2, you are now recommended to use the new Geoprocessor class.
| Method Summary | |
|---|---|
void |
addError(String message)
Sets the output error message. |
void |
addMessage(String message)
Sets the output message. |
void |
addReturnMessage(int index)
Sets the return message as an output message by index. |
void |
addToolbox(String toolbox)
Add the toolbox to the current session. |
void |
addWarning(String message)
Sets the output warning message. |
String |
checkExtension(String extension)
Checks the status of a product extension. |
String |
checkInExtension(String extension)
Checks in a product extension. |
String |
checkOutExtension(String extension)
Checks out a product extension. |
String |
checkProduct(String code)
Check the status of a license code. |
void |
clearEnvironment(String env)
Clears the value of a given environment. |
String |
command(String commandLine)
executes the given command line. |
void |
copyParameter(int from,
int to)
Copy given tool parameter to another. |
Object |
createObject(Object pObjectName,
Object pExtraArg)
Creates a geoprocessing object that can be used in a scripting environment. |
Object |
createRandomValueGenerator(int seed,
String distributionType)
Creates a geoprocessing random number generator object that can be used to generate random numbers. |
String |
createScratchName(Object prefix,
Object suffix,
Object dataType,
Object workspace)
Creates a scratch name for the given workspace. |
String |
createUniqueName(String inputTableName,
Object workspace)
Creates a unique name for the given workspace. |
Object |
describe(Object pInputValue,
Object dataType)
Returns a descriptor object describing the properties of the specified data element. |
boolean |
exists(Object pInputValue,
Object dataType)
Checks if a data element exists. |
int |
getMaxSeverity()
The maximum severity of the return messages. |
String |
getMessage(int index)
Gets the return message by index. |
int |
getMessageCount()
The number of returned messages. |
String |
getMessages(Object severity)
Gets all the return messages. |
String |
getParameterAsText(int index)
Gets given tool parameter as text. |
int |
getParameterCount()
The number of input tool parameters. |
int |
getReturnCode(int index)
Gets the return code by index. |
int |
getSeverity(int index)
Gets the return severity by index. |
String |
getSystemEnvironment(String envName)
Gets the given system environment. |
String |
getToolbox()
Sets the current (default) toolbox. |
Object |
insertCursor(Object pInputValue,
Object spRef)
Returns an insert cursor object against the given table/feature class. |
boolean |
isLogHistory()
Indicates whether or not operations are logged or not. |
boolean |
isOverwriteOutput()
Indicates whether or not outputs should be overwritten. |
Object |
listDatasets(Object wildCard,
Object featureType)
Returns a collection of datasets in the current workspace based on a query string and type. |
Object |
listEnvironments(Object pWildcard)
Gets list of GeoProcessor Environments. |
Object |
listFeatureClasses(Object wildCard,
Object featureType,
Object dataset)
Returns a collection of feature classes in the current workspace or optional dataset, based on a query string and type. |
Object |
listFields(Object pInputValue,
Object wildCard,
Object fieldType)
Returns a collection of fields in the given table/feature class based on a query string and type. |
Object |
listIndexes(Object pInputValue,
Object wildCard)
Returns a collection of indexes in the given table/feature class based on a query string and type. |
Object |
listRasters(Object wildCard,
Object rasterType)
Returns a collection of rasters in the current workspace based on a query string and type. |
Object |
listTables(Object wildCard,
Object tableType)
Returns a collection of tables in the current workspace based on a query string and type. |
Object |
listToolboxes(Object pWildcard)
Gets list of GeoProcessor Toolboxes. |
Object |
listTools(Object pWildcard)
Gets list of GeoProcessor Tools. |
Object |
listWorkspaces(Object wildCard,
Object workspaceType)
Returns a collection of workspaces in the current workspace based on a query string and type. |
void |
loadSettings(String fileName)
Loads the current GeoProcessor environment settings. |
String |
parseFieldName(String inputFieldName,
Object workspace)
Parses a field name into its constituent parts. |
String |
parseTableName(String inputTableName,
Object workspace)
Parses a table name into its constituent parts. |
String |
productInfo()
Gets the product license info. |
String |
qualifyFieldName(String inputFieldName,
Object workspace)
Qualifies a field name for the workspace and connected user. |
String |
qualifyTableName(String inputTableName,
Object workspace)
Qualifies a table name for the workspace and connected user. |
void |
refreshCatalog(Object pInputValue)
Refreshes the parent of the specified object in the catalog object associated with the Geoprocessor. |
void |
removeToolbox(String toolbox)
Remove the toolbox from the current session. |
void |
resetEnvironments()
Tests if a given environments value is set or not. |
void |
saveSettings(String fileName)
Saves the current GeoProcessor environment settings. |
Object |
searchCursor(Object pInputValue,
Object whereClause,
Object spRef,
Object fields,
Object sortFields)
Returns a search cursor object against the given table/feature class. |
void |
setLogHistory(boolean logHistory)
Indicates whether or not operations are logged or not. |
void |
setOverwriteOutput(boolean overwriteOutput)
Indicates whether or not outputs should be overwritten. |
void |
setParameterAsText(int index,
String argument)
Sets given tool parameter as text. |
String |
setProduct(String code)
Sets the license level. |
void |
setToolbox(String toolbox)
Sets the current (default) toolbox. |
String |
testSchemaLock(String fileName)
Tests if an exclusive schema lock is set on a dataset. |
Object |
updateCursor(Object pInputValue,
Object whereClause,
Object spRef,
Object fields,
Object sortFields)
Returns an update cursor object against the given table/feature class. |
String |
usage(String method)
Generates the Usage for a given tool. |
String |
validateFieldName(String inputFieldName,
Object workspace)
Checks a field for compatibility with the workspace. |
String |
validateTableName(String inputTableName,
Object workspace)
Checks a table name for compatibility with the workspace. |
| Method Detail |
|---|
int getMessageCount()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String getMessage(int index)
throws IOException,
AutomationException
index - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
int getSeverity(int index)
throws IOException,
AutomationException
index - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
int getReturnCode(int index)
throws IOException,
AutomationException
index - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String getMessages(Object severity)
throws IOException,
AutomationException
severity - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
int getMaxSeverity()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void addMessage(String message)
throws IOException,
AutomationException
message - The message (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void addError(String message)
throws IOException,
AutomationException
message - The message (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void addWarning(String message)
throws IOException,
AutomationException
message - The message (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void addReturnMessage(int index)
throws IOException,
AutomationException
index - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String setProduct(String code)
throws IOException,
AutomationException
code - The code (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String checkProduct(String code)
throws IOException,
AutomationException
code - The code (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String productInfo()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String checkOutExtension(String extension)
throws IOException,
AutomationException
extension - The extension (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String checkInExtension(String extension)
throws IOException,
AutomationException
extension - The extension (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String checkExtension(String extension)
throws IOException,
AutomationException
extension - The extension (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
int getParameterCount()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String getParameterAsText(int index)
throws IOException,
AutomationException
index - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setParameterAsText(int index,
String argument)
throws IOException,
AutomationException
index - The index (in)argument - The argument (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void copyParameter(int from,
int to)
throws IOException,
AutomationException
from - The from (in)to - The to (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
Object listTools(Object pWildcard)
throws IOException,
AutomationException
pWildcard - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
Object listEnvironments(Object pWildcard)
throws IOException,
AutomationException
pWildcard - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
Object listToolboxes(Object pWildcard)
throws IOException,
AutomationException
pWildcard - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setToolbox(String toolbox)
throws IOException,
AutomationException
toolbox - The toolbox (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String getToolbox()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void addToolbox(String toolbox)
throws IOException,
AutomationException
toolbox - The toolbox (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void removeToolbox(String toolbox)
throws IOException,
AutomationException
toolbox - The toolbox (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String getSystemEnvironment(String envName)
throws IOException,
AutomationException
envName - The envName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String command(String commandLine)
throws IOException,
AutomationException
commandLine - The commandLine (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String usage(String method)
throws IOException,
AutomationException
method - The method (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean exists(Object pInputValue,
Object dataType)
throws IOException,
AutomationException
pInputValue - A Variant (in)dataType - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void refreshCatalog(Object pInputValue)
throws IOException,
AutomationException
pInputValue - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
Object listFeatureClasses(Object wildCard,
Object featureType,
Object dataset)
throws IOException,
AutomationException
wildCard - A Variant (in, optional, pass null if not required)featureType - A Variant (in, optional, pass null if not required)dataset - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
Object listDatasets(Object wildCard,
Object featureType)
throws IOException,
AutomationException
wildCard - A Variant (in, optional, pass null if not required)featureType - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
Object listTables(Object wildCard,
Object tableType)
throws IOException,
AutomationException
wildCard - A Variant (in, optional, pass null if not required)tableType - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
Object listRasters(Object wildCard,
Object rasterType)
throws IOException,
AutomationException
wildCard - A Variant (in, optional, pass null if not required)rasterType - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
Object listWorkspaces(Object wildCard,
Object workspaceType)
throws IOException,
AutomationException
wildCard - A Variant (in, optional, pass null if not required)workspaceType - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
Object listFields(Object pInputValue,
Object wildCard,
Object fieldType)
throws IOException,
AutomationException
pInputValue - A Variant (in)wildCard - A Variant (in, optional, pass null if not required)fieldType - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
Object listIndexes(Object pInputValue,
Object wildCard)
throws IOException,
AutomationException
pInputValue - A Variant (in)wildCard - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
Object searchCursor(Object pInputValue,
Object whereClause,
Object spRef,
Object fields,
Object sortFields)
throws IOException,
AutomationException
pInputValue - A Variant (in)whereClause - A Variant (in, optional, pass null if not required)spRef - A Variant (in, optional, pass null if not required)fields - A Variant (in, optional, pass null if not required)sortFields - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
Object updateCursor(Object pInputValue,
Object whereClause,
Object spRef,
Object fields,
Object sortFields)
throws IOException,
AutomationException
pInputValue - A Variant (in)whereClause - A Variant (in, optional, pass null if not required)spRef - A Variant (in, optional, pass null if not required)fields - A Variant (in, optional, pass null if not required)sortFields - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
Object insertCursor(Object pInputValue,
Object spRef)
throws IOException,
AutomationException
pInputValue - A Variant (in)spRef - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
Object describe(Object pInputValue,
Object dataType)
throws IOException,
AutomationException
pInputValue - A Variant (in)dataType - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
Object createObject(Object pObjectName,
Object pExtraArg)
throws IOException,
AutomationException
pObjectName - A Variant (in)pExtraArg - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
Object createRandomValueGenerator(int seed,
String distributionType)
throws IOException,
AutomationException
seed - The seed (in)distributionType - The distributionType (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setOverwriteOutput(boolean overwriteOutput)
throws IOException,
AutomationException
overwriteOutput - The overwriteOutput (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean isOverwriteOutput()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setLogHistory(boolean logHistory)
throws IOException,
AutomationException
logHistory - The logHistory (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean isLogHistory()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String validateFieldName(String inputFieldName,
Object workspace)
throws IOException,
AutomationException
inputFieldName - The inputFieldName (in)workspace - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String validateTableName(String inputTableName,
Object workspace)
throws IOException,
AutomationException
inputTableName - The inputTableName (in)workspace - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String qualifyFieldName(String inputFieldName,
Object workspace)
throws IOException,
AutomationException
inputFieldName - The inputFieldName (in)workspace - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String qualifyTableName(String inputTableName,
Object workspace)
throws IOException,
AutomationException
inputTableName - The inputTableName (in)workspace - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String parseFieldName(String inputFieldName,
Object workspace)
throws IOException,
AutomationException
inputFieldName - The inputFieldName (in)workspace - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String parseTableName(String inputTableName,
Object workspace)
throws IOException,
AutomationException
inputTableName - The inputTableName (in)workspace - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String createScratchName(Object prefix,
Object suffix,
Object dataType,
Object workspace)
throws IOException,
AutomationException
prefix - A Variant (in, optional, pass null if not required)suffix - A Variant (in, optional, pass null if not required)dataType - A Variant (in, optional, pass null if not required)workspace - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String createUniqueName(String inputTableName,
Object workspace)
throws IOException,
AutomationException
inputTableName - The inputTableName (in)workspace - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void saveSettings(String fileName)
throws IOException,
AutomationException
fileName - The fileName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void loadSettings(String fileName)
throws IOException,
AutomationException
fileName - The fileName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String testSchemaLock(String fileName)
throws IOException,
AutomationException
fileName - The fileName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void clearEnvironment(String env)
throws IOException,
AutomationException
env - The env (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void resetEnvironments()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||