|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.geoprocessing.GeoProcessor
public class GeoProcessor
GeoProcessor Access.
A geoprocessing tool is executed by a geoprocessor. The geoprocessor is a helper object that simplifies the task of executing tools. Toolboxes define the set of tools available for the geoprocessor. Toolboxes can be added and removed from the geoprocessor.
| Constructor Summary | |
|---|---|
GeoProcessor()
Constructs a GeoProcessor using ArcGIS Engine. |
|
GeoProcessor(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. GeoProcessor theGeoProcessor = (GeoProcessor) obj; |
|
| 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 |
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. |
boolean |
equals(Object o)
Compare this object with another |
IGeoProcessorResult |
execute(GPTool tool,
ITrackCancel pTrackCancel)
This method executes a GPTool. |
IGeoProcessorResult |
execute(String name,
IVariantArray ipValues,
ITrackCancel pTrackCancel)
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. |
static String |
getClsid()
getClsid. |
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. |
int |
hashCode()
the hashcode for this object |
boolean |
isAddOutputsToMap()
Set whether resulting output datasets should be added to the application display. |
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 |
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 |
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. |
String |
usage(String method)
Returns the command line usage of a given tool by name. |
IGPMessages |
validate(GPTool tool,
boolean bUpdateValues)
This method validates the parameters of the tool before execution. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
|---|
getJintegraDispatch, release |
| Constructor Detail |
|---|
public GeoProcessor()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public GeoProcessor(Object obj)
throws IOException
GeoProcessor theGeoProcessor = (GeoProcessor) obj;
obj to GeoProcessor.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public Object getEnvironmentValue(String environmentName)
throws IOException,
AutomationException
getEnvironmentValue in interface IGeoProcessorenvironmentName - The environmentName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setEnvironmentValue(String environmentName,
Object value)
throws IOException,
AutomationException
setEnvironmentValue in interface IGeoProcessorenvironmentName - The environmentName (in)value - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void resetEnvironments()
throws IOException,
AutomationException
resetEnvironments in interface IGeoProcessorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGeoProcessorResult execute(String name,
IVariantArray ipValues,
ITrackCancel pTrackCancel)
throws IOException,
AutomationException
execute in interface IGeoProcessorname - 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.
public IGPMessages validate(String name,
IVariantArray ipValues,
boolean bUpdateValues)
throws IOException,
AutomationException
validate in interface IGeoProcessorname - 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.
public Object open(Object value)
throws IOException,
AutomationException
open in interface IGeoProcessorvalue - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IDataElement getDataElement(Object inputValue,
Object pDataType)
throws IOException,
AutomationException
getDataElement in interface IGeoProcessorinputValue - A Variant (in)pDataType - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGpEnumList listTools(String wildCard)
throws IOException,
AutomationException
listTools in interface IGeoProcessorwildCard - The wildCard (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGpEnumList listEnvironments(String wildCard)
throws IOException,
AutomationException
listEnvironments in interface IGeoProcessorwildCard - The wildCard (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGpEnumList listToolboxes(String wildCard)
throws IOException,
AutomationException
listToolboxes in interface IGeoProcessorwildCard - The wildCard (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addToolbox(String toolbox)
throws IOException,
AutomationException
addToolbox in interface IGeoProcessortoolbox - The toolbox (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void removeToolbox(String toolbox)
throws IOException,
AutomationException
removeToolbox in interface IGeoProcessortoolbox - The toolbox (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAddOutputsToMap(boolean addToMap)
throws IOException,
AutomationException
setAddOutputsToMap in interface IGeoProcessoraddToMap - The addToMap (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isAddOutputsToMap()
throws IOException,
AutomationException
isAddOutputsToMap in interface IGeoProcessorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setOverwriteOutput(boolean pOverrideOutput)
throws IOException,
AutomationException
setOverwriteOutput in interface IGeoProcessorpOverrideOutput - The pOverrideOutput (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isOverwriteOutput()
throws IOException,
AutomationException
isOverwriteOutput in interface IGeoProcessorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setTemporaryMapLayers(boolean temporaryMapLayers)
throws IOException,
AutomationException
setTemporaryMapLayers in interface IGeoProcessortemporaryMapLayers - The temporaryMapLayers (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isTemporaryMapLayers()
throws IOException,
AutomationException
isTemporaryMapLayers in interface IGeoProcessorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setLogHistory(boolean logHistory)
throws IOException,
AutomationException
setLogHistory in interface IGeoProcessorlogHistory - The logHistory (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isLogHistory()
throws IOException,
AutomationException
isLogHistory in interface IGeoProcessorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGPMessages getReturnMessages()
throws IOException,
AutomationException
getReturnMessages in interface IGeoProcessorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getMessageCount()
throws IOException,
AutomationException
getMessageCount in interface IGeoProcessorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getMessage(int index)
throws IOException,
AutomationException
getMessage in interface IGeoProcessorindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getSeverity(int index)
throws IOException,
AutomationException
getSeverity in interface IGeoProcessorindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getReturnCode(int index)
throws IOException,
AutomationException
getReturnCode in interface IGeoProcessorindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getMessages(Object pSeverity)
throws IOException,
AutomationException
getMessages in interface IGeoProcessorpSeverity - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getMaxSeverity()
throws IOException,
AutomationException
getMaxSeverity in interface IGeoProcessorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addMessage(String message)
throws IOException,
AutomationException
addMessage in interface IGeoProcessormessage - The message (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addError(String message)
throws IOException,
AutomationException
addError in interface IGeoProcessormessage - The message (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addWarning(String message)
throws IOException,
AutomationException
addWarning in interface IGeoProcessormessage - The message (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addReturnMessage(int index)
throws IOException,
AutomationException
addReturnMessage in interface IGeoProcessorindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void clearMessages()
throws IOException,
AutomationException
clearMessages in interface IGeoProcessorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getParameterCount()
throws IOException,
AutomationException
getParameterCount in interface IGeoProcessorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getParameterValue(int index)
throws IOException,
AutomationException
getParameterValue in interface IGeoProcessorindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setParameterValue(int index,
Object value)
throws IOException,
AutomationException
setParameterValue in interface IGeoProcessorindex - The index (in)value - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean exists(Object inputValue,
Object pDataType)
throws IOException,
AutomationException
exists in interface IGeoProcessorinputValue - A Variant (in)pDataType - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String usage(String method)
throws IOException,
AutomationException
usage in interface IGeoProcessormethod - The method (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGpEnumList listFeatureClasses(String wildCard,
String featureType,
String dataset)
throws IOException,
AutomationException
listFeatureClasses in interface IGeoProcessorwildCard - 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.
public IGpEnumList listDatasets(String wildCard,
String datasetType)
throws IOException,
AutomationException
listDatasets in interface IGeoProcessorwildCard - The wildCard (in)datasetType - The datasetType (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGpEnumList listWorkspaces(String wildCard,
String workspaceType)
throws IOException,
AutomationException
listWorkspaces in interface IGeoProcessorwildCard - The wildCard (in)workspaceType - The workspaceType (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGpEnumList listTables(String wildCard,
String tableType)
throws IOException,
AutomationException
listTables in interface IGeoProcessorwildCard - The wildCard (in)tableType - The tableType (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGpEnumList listRasters(String wildCard,
String rasterType)
throws IOException,
AutomationException
listRasters in interface IGeoProcessorwildCard - The wildCard (in)rasterType - The rasterType (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String validateFieldName(String inputFieldName,
String workspace)
throws IOException,
AutomationException
validateFieldName in interface IGeoProcessorinputFieldName - The inputFieldName (in)workspace - The workspace (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String validateTableName(String inputTableName,
String workspace)
throws IOException,
AutomationException
validateTableName in interface IGeoProcessorinputTableName - The inputTableName (in)workspace - The workspace (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String qualifyFieldName(String inputFieldName,
String workspace)
throws IOException,
AutomationException
qualifyFieldName in interface IGeoProcessorinputFieldName - The inputFieldName (in)workspace - The workspace (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String qualifyTableName(String inputTableName,
String workspace)
throws IOException,
AutomationException
qualifyTableName in interface IGeoProcessorinputTableName - The inputTableName (in)workspace - The workspace (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String parseFieldName(String inputFieldName,
String workspace)
throws IOException,
AutomationException
parseFieldName in interface IGeoProcessorinputFieldName - The inputFieldName (in)workspace - The workspace (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String parseTableName(String inputTableName,
String workspace)
throws IOException,
AutomationException
parseTableName in interface IGeoProcessorinputTableName - The inputTableName (in)workspace - The workspace (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void saveSettings(String fileName)
throws IOException,
AutomationException
saveSettings in interface IGeoProcessorfileName - The fileName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void loadSettings(String fileName)
throws IOException,
AutomationException
loadSettings in interface IGeoProcessorfileName - The fileName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String testSchemaLock(String fileName)
throws IOException,
AutomationException
testSchemaLock in interface IGeoProcessorfileName - The fileName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void registerGeoProcessorEvents(IGeoProcessorEvents pGeoProcessorEvents)
throws IOException,
AutomationException
registerGeoProcessorEvents in interface IGeoProcessorpGeoProcessorEvents - A reference to a com.esri.arcgis.geoprocessing.IGeoProcessorEvents (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void unRegisterGeoProcessorEvents(IGeoProcessorEvents pGeoProcessorEvents)
throws IOException,
AutomationException
unRegisterGeoProcessorEvents in interface IGeoProcessorpGeoProcessorEvents - A reference to a com.esri.arcgis.geoprocessing.IGeoProcessorEvents (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGeoProcessorResult createResult(String toolName,
String jobID)
throws IOException,
AutomationException
createResult in interface IGeoProcessortoolName - The toolName (in)jobID - The jobID (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isSynchronous(String toolName)
throws IOException,
AutomationException
isSynchronous in interface IGeoProcessortoolName - The toolName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGeoProcessorResult execute(GPTool tool,
ITrackCancel pTrackCancel)
throws IOException
tool - GPTool - A tool with all it's required values set.{@link - ITrackCancel} - If you do not wish to allow cancellation of a running Geoproceesing execution
then you can pass in null
Object The result from the Geoprocessor, which is usually a String or an Object
representation of the a native type.
IOException
public IGPMessages validate(GPTool tool,
boolean bUpdateValues)
throws IOException
tool - The tool to executedbUpdateValues - determines whether or not to update the values.
IGPMessagesthe GPmessages returned from the validate call.
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||