|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGeoProcessor2
The Geoprocessor. Provides access to toolboxes and tools.
Method Summary | |
---|---|
void |
addError(String message)
Output an error message. |
void |
addMessage(String message)
Output an informative message. |
void |
addReturnMessage(int index)
Output message from the last tool executed. |
void |
addToolbox(String toolbox)
Add a toolbox to the current Geoprocessing session by catalog path. |
void |
addWarning(String message)
Output a warning message. |
void |
checkResultStatus(IGeoProcessorResult pGPResult)
Check for end of result. |
void |
clearMessages()
Clear the messages to be returned as tool message when running within a script tool. |
IGeoProcessorResult |
createResult(String toolName,
String jobID)
Create a new result object. |
IGeoProcessorResult |
execute(String name,
IVariantArray ipValues,
ITrackCancel pTrackCancel)
Execute a tool within the current Geoprocessing session. |
IGeoProcessorResult |
executeASync(String name,
IVariantArray ipValues)
Execute a tool within the current Geoprocessing session. |
boolean |
exists(Object inputValue,
Object pDataType)
Test the existence of a given parameter value (GPValue or catalog path) the type of the data is optional. |
IDataElement |
getDataElement(Object inputValue,
Object pDataType)
Make a dataelement from the given value. |
Object |
getEnvironmentValue(String environmentName)
Retrieve the value of an environment by name. |
int |
getMaxSeverity()
Return the maximum severity of the message of the last tool executed. |
String |
getMessage(int index)
Return the message description by index of the last tool executed. |
int |
getMessageCount()
Return the number of messages of the last tool executed. |
String |
getMessages(Object pSeverity)
Return all of the message descriptions of the last tool executed. |
int |
getParameterCount()
Return the number of input command line or script tool parameters. |
Object |
getParameterValue(int index)
Return the input command line or script tool parameter by index as a GPValue. |
int |
getReturnCode(int index)
Return the message error code (Error Messages Only) by index of the last tool executed. |
IGPMessages |
getReturnMessages()
Return the GPMessages object which will be messages of the last tool executed. |
int |
getSeverity(int index)
Return the message severity by index of the last tool executed. |
boolean |
isAddOutputsToMap()
Set whether resulting output datasets should be added to the application display. |
boolean |
isAddToResults()
Set whether to add results to result view. |
boolean |
isLogHistory()
Set whether or not to log the execution of geoprocessing tools. |
boolean |
isOverwriteOutput()
Set the overwrite outputs flag within the current Geoprocessing session. |
boolean |
isSynchronous(String toolName)
Is server tool synchronous. |
boolean |
isTemporaryMapLayers()
Set whether new map layers are temporary by default. |
IGpEnumList |
listDatasets(String wildCard,
String datasetType)
Return the list of feature datasets within the current workspace. |
IGpEnumList |
listEnvironments(String wildCard)
Return the list of environments (properties) within the current Geoprocessing session. |
IGpEnumList |
listFeatureClasses(String wildCard,
String featureType,
String dataset)
Return the list of feature classes within the current workspace or feature dataset within the workspace. |
IGpEnumList |
listRasters(String wildCard,
String rasterType)
Return the list of rasters within the current workspace. |
IGpEnumList |
listTables(String wildCard,
String tableType)
Return the list of tables within the current workspace. |
IGpEnumList |
listToolboxes(String wildCard)
Return the list of toolboxes within the current Geoprocessing session. |
IGpEnumList |
listTools(String wildCard)
Return the list of tools within the current Geoprocessing session. |
IGpEnumList |
listWorkspaces(String wildCard,
String workspaceType)
Return the list of workspaces within the current workspace (the workspace can be a folder). |
void |
loadSettings(String fileName)
Load the current settings (toolboxes, environment values, etc) from a file on disk in XML format. |
Object |
open(Object value)
Open an objector a namestring. |
String |
parseFieldName(String inputFieldName,
String workspace)
Parse a field name within the given workspace. |
String |
parseTableName(String inputTableName,
String workspace)
Parse a table name within the given workspace. |
String |
qualifyFieldName(String inputFieldName,
String workspace)
Qualify a field name within the given workspace. |
String |
qualifyTableName(String inputTableName,
String workspace)
Qualify a table name within the given workspace. |
void |
registerGeoProcessorEvents(IGeoProcessorEvents pGeoProcessorEvents)
Register an object to recieve IGeoProcessorEvents. |
void |
registerGeoProcessorEvents3(IGeoProcessorEvents3 pGeoProcessorEvents3)
Register an object to recieve IGeoProcessorEvents3. |
void |
removeToolbox(String toolbox)
Remove a toolbox from the current Geoprocessing session by catalog path. |
void |
resetEnvironments()
Reset the environments to their initial state. |
void |
saveSettings(String fileName)
Save the current settings (toolboxes, environment values, etc) to a file on disk in XML format. |
void |
setAddOutputsToMap(boolean addToMap)
Set whether resulting output datasets should be added to the application display. |
void |
setAddToResults(boolean addToResults)
Set whether to add results to result view. |
void |
setEnvironmentValue(String environmentName,
Object value)
Update the value of an environment by name. |
void |
setLogHistory(boolean logHistory)
Set whether or not to log the execution of geoprocessing tools. |
void |
setOverwriteOutput(boolean pOverrideOutput)
Set the overwrite outputs flag within the current Geoprocessing session. |
void |
setParameterValue(int index,
Object value)
Set the output script tool parameter by index as a GPValue. |
void |
setTemporaryMapLayers(boolean temporaryMapLayers)
Set whether new map layers are temporary by default. |
String |
testSchemaLock(String fileName)
Test for the presence of a schema lock (already open for writing) of a given file or dataset. |
void |
unRegisterGeoProcessorEvents(IGeoProcessorEvents pGeoProcessorEvents)
UnRegister an object to stop recieving IGeoProcessorEvents. |
void |
unRegisterGeoProcessorEvents3(IGeoProcessorEvents3 pGeoProcessorEvents3)
UnRegister an object to stop recieving IGeoProcessorEvents3. |
String |
usage(String method)
Returns the command line usage of a given tool by name. |
IGPMessages |
validate(String name,
IVariantArray ipValues,
boolean bUpdateValues)
Validate the parameters (input) of a tool within the current Geoprocessing session. |
String |
validateFieldName(String inputFieldName,
String workspace)
Validate a field name within the given workspace. |
String |
validateTableName(String inputTableName,
String workspace)
Validate a table or feature class name within the given workspace. |
Method Detail |
---|
Object getEnvironmentValue(String environmentName) throws IOException, AutomationException
environmentName
- The environmentName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setEnvironmentValue(String environmentName, Object value) throws IOException, AutomationException
environmentName
- The environmentName (in)value
- A Variant (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.IGeoProcessorResult execute(String name, IVariantArray ipValues, ITrackCancel pTrackCancel) throws IOException, AutomationException
name
- The name (in)ipValues
- A reference to a com.esri.arcgis.system.IVariantArray (in)pTrackCancel
- A reference to a com.esri.arcgis.system.ITrackCancel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGPMessages validate(String name, IVariantArray ipValues, boolean bUpdateValues) throws IOException, AutomationException
name
- The name (in)ipValues
- A reference to a com.esri.arcgis.system.IVariantArray (in)bUpdateValues
- The bUpdateValues (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Object open(Object value) throws IOException, AutomationException
value
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IDataElement getDataElement(Object inputValue, Object pDataType) throws IOException, AutomationException
inputValue
- A Variant (in)pDataType
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGpEnumList listTools(String wildCard) throws IOException, AutomationException
wildCard
- The wildCard (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGpEnumList listEnvironments(String wildCard) throws IOException, AutomationException
wildCard
- The wildCard (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGpEnumList listToolboxes(String wildCard) throws IOException, AutomationException
wildCard
- The wildCard (in)
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.void setAddOutputsToMap(boolean addToMap) throws IOException, AutomationException
addToMap
- The addToMap (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isAddOutputsToMap() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setOverwriteOutput(boolean pOverrideOutput) throws IOException, AutomationException
pOverrideOutput
- The pOverrideOutput (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 setTemporaryMapLayers(boolean temporaryMapLayers) throws IOException, AutomationException
temporaryMapLayers
- The temporaryMapLayers (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isTemporaryMapLayers() 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.IGPMessages getReturnMessages() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.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 pSeverity) throws IOException, AutomationException
pSeverity
- A Variant (in)
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.void clearMessages() throws IOException, AutomationException
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.Object getParameterValue(int index) throws IOException, AutomationException
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setParameterValue(int index, Object value) throws IOException, AutomationException
index
- The index (in)value
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean exists(Object inputValue, Object pDataType) throws IOException, AutomationException
inputValue
- A Variant (in)pDataType
- A Variant (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.IGpEnumList listFeatureClasses(String wildCard, String featureType, String dataset) throws IOException, AutomationException
wildCard
- The wildCard (in)featureType
- The featureType (in)dataset
- The dataset (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGpEnumList listDatasets(String wildCard, String datasetType) throws IOException, AutomationException
wildCard
- The wildCard (in)datasetType
- The datasetType (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGpEnumList listWorkspaces(String wildCard, String workspaceType) throws IOException, AutomationException
wildCard
- The wildCard (in)workspaceType
- The workspaceType (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGpEnumList listTables(String wildCard, String tableType) throws IOException, AutomationException
wildCard
- The wildCard (in)tableType
- The tableType (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGpEnumList listRasters(String wildCard, String rasterType) throws IOException, AutomationException
wildCard
- The wildCard (in)rasterType
- The rasterType (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String validateFieldName(String inputFieldName, String workspace) throws IOException, AutomationException
inputFieldName
- The inputFieldName (in)workspace
- The workspace (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String validateTableName(String inputTableName, String workspace) throws IOException, AutomationException
inputTableName
- The inputTableName (in)workspace
- The workspace (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String qualifyFieldName(String inputFieldName, String workspace) throws IOException, AutomationException
inputFieldName
- The inputFieldName (in)workspace
- The workspace (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String qualifyTableName(String inputTableName, String workspace) throws IOException, AutomationException
inputTableName
- The inputTableName (in)workspace
- The workspace (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String parseFieldName(String inputFieldName, String workspace) throws IOException, AutomationException
inputFieldName
- The inputFieldName (in)workspace
- The workspace (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String parseTableName(String inputTableName, String workspace) throws IOException, AutomationException
inputTableName
- The inputTableName (in)workspace
- The workspace (in)
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 registerGeoProcessorEvents(IGeoProcessorEvents pGeoProcessorEvents) throws IOException, AutomationException
pGeoProcessorEvents
- A reference to a com.esri.arcgis.geoprocessing.IGeoProcessorEvents (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void unRegisterGeoProcessorEvents(IGeoProcessorEvents pGeoProcessorEvents) throws IOException, AutomationException
pGeoProcessorEvents
- A reference to a com.esri.arcgis.geoprocessing.IGeoProcessorEvents (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGeoProcessorResult createResult(String toolName, String jobID) throws IOException, AutomationException
toolName
- The toolName (in)jobID
- The jobID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isSynchronous(String toolName) throws IOException, AutomationException
toolName
- The toolName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGeoProcessorResult executeASync(String name, IVariantArray ipValues) throws IOException, AutomationException
Executes a tool in a background process, allowing the ArcGIS application and controls to remain responsive to user input.
name
- The name (in)ipValues
- A reference to a com.esri.arcgis.system.IVariantArray (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void registerGeoProcessorEvents3(IGeoProcessorEvents3 pGeoProcessorEvents3) throws IOException, AutomationException
pGeoProcessorEvents3
- A reference to a com.esri.arcgis.geoprocessing.IGeoProcessorEvents3 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void unRegisterGeoProcessorEvents3(IGeoProcessorEvents3 pGeoProcessorEvents3) throws IOException, AutomationException
pGeoProcessorEvents3
- A reference to a com.esri.arcgis.geoprocessing.IGeoProcessorEvents3 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void checkResultStatus(IGeoProcessorResult pGPResult) throws IOException, AutomationException
pGPResult
- A reference to a com.esri.arcgis.geoprocessing.IGeoProcessorResult (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setAddToResults(boolean addToResults) throws IOException, AutomationException
addToResults
- The addToResults (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isAddToResults() 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 |