|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geoprocessing.GPUtilities
public class GPUtilities
Helper object with common geoprocessing utility methods.
The GPUtilities object is mainly intended for developers building custom tools. For more information about building custom tools, refer to the technical document Building Geoprocessing Function Tools.
Constructor Summary | |
---|---|
GPUtilities()
Constructs a GPUtilities using ArcGIS Engine. |
|
GPUtilities(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. GPUtilities theGPUtilities = (GPUtilities) obj; |
Method Summary | |
---|---|
void |
abortEditOperation(IWorkspaceEdit pWorkspace)
Abort edit operation within the application. |
void |
addInternalLayer(ILayer pLayer)
Adds a layer object to the geoprocessing utility object. |
void |
addInternalLayer2(ILayer pLayer,
IGPLayer pGPLayer)
Adds a layer object and geoprocessing layer object to the geoprocessing utility object. |
void |
addInternalTable(ITable pTable)
Adds the given table to the utility object's list of tables. |
void |
addInternalTable2(ITable pTable,
IGPTableView pGPTableView)
Adds the given table to the utility object's list of tables. |
void |
addMessage(int type,
int iD,
IGPMessages msgs)
Add a given message from the message id to the messages object. |
void |
addMessage1Args(int type,
int iD,
String arg1,
IGPMessages msgs)
Add a given message from the message id to the messages object. |
void |
addMessage2Args(int type,
int iD,
String arg1,
String arg2,
IGPMessages msgs)
Add a given message from the message id to the messages object. |
void |
addMessageText(int type,
int iD,
String msg,
IGPMessages msgs)
Add a given message from the message text to the messages object. |
void |
addToMap(IGPValue pGPValue,
String name,
boolean temporary,
Object pUnkRenderer)
Adds the given geoprocessing value object to the application display. |
void |
addToMapEx(IGPValue pGPValue,
String name,
boolean temporary,
Object pUnkRenderer,
boolean visible)
Adds the given geoprocessing value object to the application display. |
boolean |
canAddToMap()
Returns whether datasets can be added to the current application display. |
void |
chainMessage(int type,
int iD)
Chain a given message from the message id. |
void |
chainMessage1Args(int type,
int iD,
String arg1)
Chain a given message from the message id. |
void |
chainMessage2Args(int type,
int iD,
String arg1,
String arg2)
Chain a given message from the message id. |
void |
chainMessageText(int type,
int iD,
String msg)
Chain a given message from the message text. |
void |
checkForErrors(long fdoError,
IGPMessages messages,
boolean keepAllErrors)
Check for any errors in the IErrorInfo structure. |
void |
cleanupEditSession(boolean abort)
Cleans up any edit session. |
void |
clearInMemoryWorkspace()
Clear the virtual workspace. |
boolean |
compareWildCard(String wildCard,
String data)
Returns whether the given string satisfies the given wildcard string. |
void |
copy(IGPValue pSourceGPValue,
IGPValue pTargetGPValue)
Copies the object referred to by the given geoprocessing value object. |
IDataElement |
createDataElement(String catalogPath,
IGPDataType pDataType,
String optionalWorkspace)
Creates a new data element object from the catalog object specified by the given path, data type, and optional workspace. |
IName |
createFeatureClassName(String catalogPath)
Creates a feature class name object from the given catalog path. |
IGPValue |
createFeatureLayer(String catalogPath)
Creates a geoprocessing feature layer object from the catalog path. |
IGPValue |
createParameterValue(String text,
IGPDataType pDataType,
int direction)
Creates a geoprocessing value object of the given data type from the given string. |
IName |
createParentFromCatalogPath(String catalogPath)
Returns a name object corresponding to the parent object of the specified catalog path. |
IName |
createRasterCatalogName(String catalogPath)
Creates a raster catalog name object from the given catalog path. |
IName |
createRasterDatasetName(String catalogPath)
Creates a raster dataset name object from the given catalog path. |
IName |
createTableName(String catalogPath)
Creates a table name object from the given catalog path. |
void |
createToolboxFromFactory(String alias,
String location,
String toolboxName)
Creates a toolbox at the given location for a function factory of a given alias. |
IDETable |
decodeDETable(IGPValue pValue)
Returns the table data element specified by the given geoprocessing value object. |
void |
decodeFeatureLayer(IGPValue pValue,
IFeatureClass[] ppFC,
IQueryFilter[] ppQF)
Returns the feature class and query filter specified by the given geoprocessing value object. |
ILayer |
decodeLayer(IGPValue pValue)
Returns the layer object specified by the given geoprocessing value object. |
IRaster |
decodeRaster(IGPValue pValue)
Returns the raster specified by the given geoprocessing value object. |
void |
decodeRasterLayer(IGPValue pValue,
IRasterDataset[] ppRD)
Returns the raster dataset specified by the given geoprocessing value object. |
IStandaloneTable |
decodeStandaloneTable(IGPValue pValue)
Returns the standalone table object specified by the given geoprocessing value object. |
void |
decodeTableView(IGPValue pValue,
ITable[] ppTable,
IQueryFilter[] ppQF)
Returns the table and query filter specified by the given geoprocessing value object. |
void |
delete(IGPValue pGPValue)
Deletes the object referred to by the given geoprocessing value object. |
boolean |
equals(Object o)
Compare this object with another |
boolean |
exists(IGPValue pGPValue)
Returns whether the object referred to by the given geoprocessing value object exists. |
void |
expandDataElement(IDataElement pInDE,
IDEBrowseOptions pExpandOptions)
Expands the properties of the given data element according to the given expand options. |
void |
exportFeatureClass(IDataElement pSourceDataElement,
IDataElement pTargetDataElement)
Exports the given feature class to a new feature class. |
boolean |
fieldExists(IGPValue pGPValue,
IField pField)
Returns whether the given field exists within the given geoprocessing value object. |
IField |
findField(IGPValue pGPValue,
String name)
Returns the field object with the specified name in the given geoprocessing value object. |
ILayer |
findMapLayer(String name)
Returns a layer with the given name. |
IGPLayer |
findMapLayer2(String name,
ILayer[] ppLayer)
Returns a layer and geoprocessing layer with the given name. |
ITable |
findMapTable(String name)
Locates a table with the specified name. |
IGPTableView |
findMapTable2(String name,
ITable[] ppTable)
Locates a table with the specified name and returns the table and geoprocessing table view objects. |
IGPValue |
generateDefaultOutputValue(IGPEnvironmentManager pEnvMgr,
String functionname,
IGPParameter pOutputParam,
IGPValue pInputValue,
String extension,
int outputFileBaseLimit)
Generates the default output value and sets its path to an unique name. |
void |
generateGeographicTransformDomain(Object iUnk,
IGPCodedValueDomain pGTDomain,
ISpatialReference pInSR,
ISpatialReference pOutSR,
IGPMessages pMessages)
Generate the matching geographic transform domain from an input spatial reference to an output spatial reference. |
String |
generateMessage(int type,
int iD)
Generate a given message from the message id. |
void |
generateSpRef(IArray pInputTables,
ITable pOverlayTable,
double growExtentBy,
ISpatialReference[] ppSpRef,
IEnvelope[] ppExtent,
boolean[] pHasMs,
double[] pMMin,
double[] pMMax,
boolean[] pHasZs,
double[] pZMin,
double[] pZMax)
Generates a new spatial reference object. |
IActiveView |
getActiveView()
Get active view. |
IBasicMap |
getBasicMap()
Gets the basic map associated with the application. |
Object |
getCatalog()
Returns the catalog object shared between geoprocessing operations. |
static String |
getClsid()
getClsid. |
IGPEnvironment |
getEnvironment(IArray pEnvironments,
String name)
Locates a geoprocessing environment with the given name in the given array. |
IEnvelope |
getExtent(IGPValue pValue,
int[] envType)
Gets the type and value of extent of the given value. |
IFields |
getFields(IGPValue pValue)
Returns a collection of field objects contained in the given geoprocessing value object. |
IEnumGPValue |
getGPLayers()
Returns an enumeration of current geoprocessing layers. |
IEnumGPValue |
getGPMapData()
Returns an enumeration of geoprocessing data. |
ISpatialReference |
getGPSpRefEnv(IGPEnvironmentManager pEnvMgr,
ISpatialReference pSrcSpRef,
IEnvelope pNewExtent,
double newMMin,
double newMMax,
double newZMin,
double newZMax,
Object pWkspFDS)
Creates the spatial reference from both a source and environment. |
ISpatialReference |
getGPSpRefEnvEx(IGPEnvironmentManager pEnvMgr,
ISpatialReference pSrcSpRef,
ISpatialReference pTgtSpRef,
IEnvelope pNewExtent,
double newMMin,
double newMMax,
double newZMin,
double newZMax,
Object pWkspFDS)
Creates the spatial reference from both a source and environment. |
IEnumGPValue |
getGPTableViews()
Returns an enumeration of geoprocessing table views. |
void |
getGTOperationSet(IGPValue pGTs,
ISpatialReference pInSR,
ISpatialReference pOutSR,
ICompositeGeoTransformation ppGTs)
Gets the set of geographic transformations. |
Object |
getGxObject(IDataElement pDataElement)
Returns the catalog object corresponding to the given data element. |
Object |
getGxObjectFromLocation(String catalogPath)
Returns the catalog object from the given catalog path. |
IArray |
getGxObjects(String catalogPath)
Returns an array of all catalog objects which correspond to the catalog path. |
IWorkspace |
getInMemoryWorkspace()
Get the virtual workspace. |
String |
getLayerName(IGPValue pValue,
String name)
Get default layer name for given value. |
IMap |
getMap()
Gets the map associated with the application. |
IEnumLayer |
getMapLayers()
Returns an enumeration of the current layers in the application. |
IEnumTable |
getMapTables()
Returns an enumeration of standalone tables in the current map. |
String |
getMessage(int iD)
Get a given message. |
IName |
getNameObject(IDataElement pDataElement)
Returns a name object corresponding to the object referred to by the given data element. |
IName |
getNameObjectFromLocation(String locationMoniker)
Returns a name object corresponding to the object by the location moniker. |
IStatusBar |
getStatusBar()
Gets the status bar associated with the application. |
String |
getUnQualifiedCatalogPath(IGPValue pValue)
Returns the unqualified path by striping the GDBs database and user names. |
IGPVariableManager |
getVariableManager()
Sets the Variable Manager. |
String |
getWorkspace()
Sets the path to the current workspace. |
int |
hashCode()
the hashcode for this object |
boolean |
inApplication()
Indicates if the program is running in an ArcGIS applicaiton. |
IGPMessages |
internalValidate(IArray pParameters,
IArray pParamValues,
boolean updateValues,
boolean honorDerivedFlag,
IGPEnvironmentManager pEnvMgr)
Performs a validation of the parameters to a GPTool. |
void |
internalValidateValue(IGPParameter pParameter,
Object pValue,
boolean updateValue,
boolean honorDerivedFlag,
IGPEnvironmentManager pEnvMgr,
IGPMessage pMessage)
Performs a validation of the a single parameter to a GPTool. |
boolean |
isBadMessage(IGPMessages pMessages,
int index)
Tests if a given message within an array of messages is bad. |
boolean |
isDatasetType(Object pUnknown)
Returns whether the given object is a dataset. |
boolean |
isDerived(Object pInput)
Returns whether the given variable or parameter is derived. |
boolean |
isGPTableView(IGPValue pValue)
Returns test if a geoprocessing table views is in fact a table and not from a layer. |
boolean |
isRefreshCatalogParent()
Returns whether catalog objects, used by the shared catalog object, are refreshed during geoprocessing operations. |
void |
lookForGPChainedErrors(IGPMessages messages)
Transfer any GP errors or warnings to the messages object. |
IDataElement |
makeDataElement(String catalogPath,
IGPDataType pDataType,
IDEBrowseOptions pExpandOptions)
Returns a data element object from the catalog object specified by the given path, data type, and expand options. |
IDataElement |
makeDataElementFromNameObject(IName name)
Creates a new data element object from the given name object. |
IArray |
makeDataElements(String catalogPath,
IDEBrowseOptions pBrowseOptions)
Get data elements from catalog path. |
IGPLayer |
makeGPLayer(String catalogPath,
IGPDataType pDataType)
Creates a geoprocessing layer object from the given catalog path and of the given geoprocessing data type. |
IGPLayer |
makeGPLayerFromLayer(ILayer pLayer)
Creates a geoprocessing layer object based on the given layer object. |
IGPTableView |
makeGPTableView(String catalogPath,
IGPDataType pDataType)
Returns a geoprocessing table view object corresponding to the given catalog path and of the specified geoprocessing data type. |
IGPTableView |
makeGPTableViewFromTable(ITable pTable)
Returns a new geoprocessing table view object from the given table object. |
IGPValue |
makeGPValueFromObject(Object pUnk)
Generate an GPValue from an Arc Object. |
ILayer |
makeLayer(IGPValue pValue,
String name,
Object pUnkRenderer)
Creates appropriate layer for the value. |
Object |
open(IGPValue pValue)
Returns the dataset of the given value. |
IDataset |
openDataset(IGPValue pValue)
Opens the dataset object specified by the given geoprocessing value object. |
IDataset |
openDatasetFromLocation(String catalogPath)
Opens the dataset object from the given catalog path. |
IFeatureClass |
openFeatureClassFromString(String catalogPath)
Opens a feature class from the given catalog path. |
IFeatureLayer |
openFeatureLayerFromString(String catalogPath)
Opens a feature layer from the given catalog path. |
Object |
openFromString(String nameString)
Returns the dataset of the given value. |
ILayer |
openLayerFromLocation(String catalogPath)
Returns the layer based upon the given catalog path. |
IRasterDataset |
openRasterDatasetFromString(String catalogPath)
Opens a raster dataset object from the given catalog path. |
IRasterLayer |
openRasterLayerFromString(String catalogPath)
Opens a raster layer object from the given catalog path. |
ITable |
openTableFromString(String catalogPath)
Opens a table from the given catalog path. |
void |
packGPValue(IGPValue pValue,
Object pInput)
Sets the given geoprocessing value into the given parameter/variable. |
String |
qualifyOutputCatalogPath(String catalogPath)
Qualify the catalog path with the GDBs database and user names. |
void |
qualifyOutputDataElement(IGPValue pValue)
Qualify the catalog path of the given value with the GDBs database and user names. |
void |
refreshCatalog(IDataElement pSourceDataElement)
Refreshes the parent within the catalog of the given data element. |
void |
refreshView()
Refreshes the applications active view. |
void |
releaseInternals()
Releases all internal objects used prior to releasing this GPUtilities object. |
void |
removeFromMap(IGPValue pGPValue,
String name)
Removes the data/layers specified by the geoprocessing value object and/or name. |
void |
removeFromMapEx(IGPValue pGPValue)
Removes the data/layers specified by the geoprocessing value object from the map. |
void |
removeInternalData()
Removes all internal layers and tables. |
void |
removeInternalLayer(String name)
Removes the internal layer. |
void |
removeInternalLayerEx(ILayer pLayer)
Removes the internal layer. |
void |
removeInternalTable(String name)
Removes the internal table. |
void |
removeInternalTableEx(ITable pTable)
Removes the internal table. |
void |
removeInternalValues()
Removes all of the GPValues returned from MakeGPValueFromObject. |
void |
rename(IGPValue pSourceGPValue,
IGPValue pTargetGPValue)
Renames the object referred to by the given geoprocessing value object. |
void |
saveLayer(String catalogPath,
ILayer pLayer)
Saves a layer to a given location on disk. |
void |
setGridIndex(IGPEnvironmentManager pEnvMgr,
IArray pInputTables,
double spatialIndex1,
double spatialIndex2,
double spatialIndex3,
Object pUnk,
IGeometryDef pGeometryDef)
Calculates and sets the grid index sizes on the given geometry definition object. |
void |
setInternalMap(IMap pMap)
Sets the internal map used by the geoprocessor. |
void |
setMessage(int type,
int iD,
int pos,
IGPMessages msgs)
Set a given message from the message id to the messages object. |
void |
setMessage1Args(int type,
int iD,
String arg1,
int pos,
IGPMessages msgs)
Set a given message from the message id to the messages object. |
void |
setMessage2Args(int type,
int iD,
String arg1,
String arg2,
int pos,
IGPMessages msgs)
Set a given message from the message id to the messages object. |
void |
setMessageText(int type,
int iD,
String msg,
int pos,
IGPMessages msgs)
Set a given message from the message text to the messages object. |
void |
setRefreshCatalogParent(boolean pRefresh)
Returns whether catalog objects, used by the shared catalog object, are refreshed during geoprocessing operations. |
void |
setupEditSession(IClass pTable)
Starts an edit session if needed. |
void |
setVariableManagerByRef(IGPVariableManager ppVariableManager)
Sets the Variable Manager. |
void |
setWorkspace(String workPath)
Sets the path to the current workspace. |
void |
startEditOperation(IWorkspaceEdit pWorkspace,
boolean bHasPrivateEditSession)
Start edit operation within the application. |
void |
stopEditOperation(IWorkspaceEdit pWorkspace,
String operationLabel)
Stop edit operation within the application. |
IGPValue |
unpackGPValue(Object pInput)
Returns the geoprocessing value object from the given parameter, variable, or value object. |
boolean |
validateExists(IGPValue pGPValue,
boolean checkDerived)
Verifies that the data referenced by the given geoprocessing value object exists. |
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 GPUtilities() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic GPUtilities(Object obj) throws IOException
GPUtilities theGPUtilities = (GPUtilities) obj;
obj
to GPUtilities
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public IGPMessages internalValidate(IArray pParameters, IArray pParamValues, boolean updateValues, boolean honorDerivedFlag, IGPEnvironmentManager pEnvMgr) throws IOException, AutomationException
The InternalValidate method is called during Validate, when it performs checks on required data elements to ensure they exist and are valid. In particular, it verifies data types and their values against data definitions, and if the values are members of a defined domain. InternalValidate also checks geoprocessing environment settings.
internalValidate
in interface IGPUtilities
pParameters
- A reference to a com.esri.arcgis.system.IArray (in)pParamValues
- A reference to a com.esri.arcgis.system.IArray (in)updateValues
- The updateValues (in)honorDerivedFlag
- The honorDerivedFlag (in)pEnvMgr
- A reference to a com.esri.arcgis.geoprocessing.IGPEnvironmentManager (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void internalValidateValue(IGPParameter pParameter, Object pValue, boolean updateValue, boolean honorDerivedFlag, IGPEnvironmentManager pEnvMgr, IGPMessage pMessage) throws IOException, AutomationException
internalValidateValue
in interface IGPUtilities
pParameter
- A reference to a com.esri.arcgis.geoprocessing.IGPParameter (in)pValue
- A reference to another Object (IUnknown) (in)updateValue
- The updateValue (in)honorDerivedFlag
- The honorDerivedFlag (in)pEnvMgr
- A reference to a com.esri.arcgis.geoprocessing.IGPEnvironmentManager (in)pMessage
- A reference to a com.esri.arcgis.geodatabase.IGPMessage (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isBadMessage(IGPMessages pMessages, int index) throws IOException, AutomationException
isBadMessage
in interface IGPUtilities
pMessages
- A reference to a com.esri.arcgis.geodatabase.IGPMessages (in)index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGPValue generateDefaultOutputValue(IGPEnvironmentManager pEnvMgr, String functionname, IGPParameter pOutputParam, IGPValue pInputValue, String extension, int outputFileBaseLimit) throws IOException, AutomationException
The GenerateDefaultOutputValue method is called during validation inside IGPFunction_Validate to return an output path as a value object [IGPValue].
generateDefaultOutputValue
in interface IGPUtilities
pEnvMgr
- A reference to a com.esri.arcgis.geoprocessing.IGPEnvironmentManager (in)functionname
- The functionname (in)pOutputParam
- A reference to a com.esri.arcgis.geoprocessing.IGPParameter (in)pInputValue
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)extension
- The extension (in)outputFileBaseLimit
- The outputFileBaseLimit (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void qualifyOutputDataElement(IGPValue pValue) throws IOException, AutomationException
qualifyOutputDataElement
in interface IGPUtilities
pValue
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String qualifyOutputCatalogPath(String catalogPath) throws IOException, AutomationException
qualifyOutputCatalogPath
in interface IGPUtilities
catalogPath
- The catalogPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getUnQualifiedCatalogPath(IGPValue pValue) throws IOException, AutomationException
getUnQualifiedCatalogPath
in interface IGPUtilities
pValue
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setWorkspace(String workPath) throws IOException, AutomationException
setWorkspace
in interface IGPUtilities
workPath
- The workPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getWorkspace() throws IOException, AutomationException
getWorkspace
in interface IGPUtilities
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getCatalog() throws IOException, AutomationException
getCatalog
in interface IGPUtilities
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isRefreshCatalogParent() throws IOException, AutomationException
isRefreshCatalogParent
in interface IGPUtilities
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setRefreshCatalogParent(boolean pRefresh) throws IOException, AutomationException
setRefreshCatalogParent
in interface IGPUtilities
pRefresh
- The pRefresh (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IDataElement makeDataElement(String catalogPath, IGPDataType pDataType, IDEBrowseOptions pExpandOptions) throws IOException, AutomationException
makeDataElement
in interface IGPUtilities
catalogPath
- The catalogPath (in)pDataType
- A reference to a com.esri.arcgis.geodatabase.IGPDataType (in)pExpandOptions
- A reference to a com.esri.arcgis.geodatabase.IDEBrowseOptions (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IDataElement makeDataElementFromNameObject(IName name) throws IOException, AutomationException
makeDataElementFromNameObject
in interface IGPUtilities
name
- A reference to a com.esri.arcgis.system.IName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void expandDataElement(IDataElement pInDE, IDEBrowseOptions pExpandOptions) throws IOException, AutomationException
expandDataElement
in interface IGPUtilities
pInDE
- A reference to a com.esri.arcgis.geodatabase.IDataElement (in)pExpandOptions
- A reference to a com.esri.arcgis.geodatabase.IDEBrowseOptions (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IDataElement createDataElement(String catalogPath, IGPDataType pDataType, String optionalWorkspace) throws IOException, AutomationException
createDataElement
in interface IGPUtilities
catalogPath
- The catalogPath (in)pDataType
- A reference to a com.esri.arcgis.geodatabase.IGPDataType (in)optionalWorkspace
- The optionalWorkspace (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGPValue createFeatureLayer(String catalogPath) throws IOException, AutomationException
createFeatureLayer
in interface IGPUtilities
catalogPath
- The catalogPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IRasterDataset openRasterDatasetFromString(String catalogPath) throws IOException, AutomationException
openRasterDatasetFromString
in interface IGPUtilities
catalogPath
- The catalogPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IFeatureClass openFeatureClassFromString(String catalogPath) throws IOException, AutomationException
The OpenFeatureClassFromString method creates a FeatureClass object by simply taking in the ArcCatalog path of a feature class as a string.
openFeatureClassFromString
in interface IGPUtilities
catalogPath
- The catalogPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ITable openTableFromString(String catalogPath) throws IOException, AutomationException
openTableFromString
in interface IGPUtilities
catalogPath
- The catalogPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IRasterLayer openRasterLayerFromString(String catalogPath) throws IOException, AutomationException
openRasterLayerFromString
in interface IGPUtilities
catalogPath
- The catalogPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IFeatureLayer openFeatureLayerFromString(String catalogPath) throws IOException, AutomationException
openFeatureLayerFromString
in interface IGPUtilities
catalogPath
- The catalogPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IName createFeatureClassName(String catalogPath) throws IOException, AutomationException
The CreateFeatureClassName method returns a Name object [IName] from the ArcCatalog path string of a feature class.
See the included code sample below.
createFeatureClassName
in interface IGPUtilities
catalogPath
- The catalogPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IName createRasterDatasetName(String catalogPath) throws IOException, AutomationException
The CreateRasterDatasetName method takes in an ArcCatalog path string of a raster dataset and returns a Name object [IName].
See the included code sample below.
createRasterDatasetName
in interface IGPUtilities
catalogPath
- The catalogPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IName createRasterCatalogName(String catalogPath) throws IOException, AutomationException
createRasterCatalogName
in interface IGPUtilities
catalogPath
- The catalogPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IName createTableName(String catalogPath) throws IOException, AutomationException
The CreateTableName method takes in an ArcCatalog path string of a table and returns a Name object [IName].
See the included code sample below.
createTableName
in interface IGPUtilities
catalogPath
- The catalogPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IDataset openDataset(IGPValue pValue) throws IOException, AutomationException
The OpenDataset method takes in a GPValue object and returns and opens the specified Dataset object. It is typically used inside the Execute method to open the input data.
openDataset
in interface IGPUtilities
pValue
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IDataset openDatasetFromLocation(String catalogPath) throws IOException, AutomationException
The OpenDatasetFromLocation method provides a quick way to get a dataset from its location path string. It takes in an ArcCatalog path string and returns a Dataset object [IDataset].
openDatasetFromLocation
in interface IGPUtilities
catalogPath
- The catalogPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addToMap(IGPValue pGPValue, String name, boolean temporary, Object pUnkRenderer) throws IOException, AutomationException
addToMap
in interface IGPUtilities
pGPValue
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)name
- The name (in)temporary
- The temporary (in)pUnkRenderer
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void refreshCatalog(IDataElement pSourceDataElement) throws IOException, AutomationException
The RefreshCatalog method forces a refresh of the catalog tree after executuion of a geoprocessing operation such as a create or delete.
Refer to the code sample to see how this method can be used.
refreshCatalog
in interface IGPUtilities
pSourceDataElement
- A reference to a com.esri.arcgis.geodatabase.IDataElement (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void exportFeatureClass(IDataElement pSourceDataElement, IDataElement pTargetDataElement) throws IOException, AutomationException
exportFeatureClass
in interface IGPUtilities
pSourceDataElement
- A reference to a com.esri.arcgis.geodatabase.IDataElement (in)pTargetDataElement
- A reference to a com.esri.arcgis.geodatabase.IDataElement (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void delete(IGPValue pGPValue) throws IOException, AutomationException
The Delete method is typically used in combination with the Exists method to first check existence of a value such as in the case of checking if the OverwriteOutput setting is true or false. A code sample is included below. For an extended code sample refer to the Execute Method section of the Building Geoprocessing Functions technical document.
delete
in interface IGPUtilities
pGPValue
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void rename(IGPValue pSourceGPValue, IGPValue pTargetGPValue) throws IOException, AutomationException
rename
in interface IGPUtilities
pSourceGPValue
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)pTargetGPValue
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void copy(IGPValue pSourceGPValue, IGPValue pTargetGPValue) throws IOException, AutomationException
copy
in interface IGPUtilities
pSourceGPValue
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)pTargetGPValue
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean exists(IGPValue pGPValue) throws IOException, AutomationException
The Exists method checks if a value exists, or has been created. A code sample is included below. For an extended code sample refer to the Execute Method section of the Building Geoprocessing Functions technical document.
exists
in interface IGPUtilities
pGPValue
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean compareWildCard(String wildCard, String data) throws IOException, AutomationException
compareWildCard
in interface IGPUtilities
wildCard
- The wildCard (in)data
- The data (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IName getNameObject(IDataElement pDataElement) throws IOException, AutomationException
getNameObject
in interface IGPUtilities
pDataElement
- A reference to a com.esri.arcgis.geodatabase.IDataElement (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IName getNameObjectFromLocation(String locationMoniker) throws IOException, AutomationException
getNameObjectFromLocation
in interface IGPUtilities
locationMoniker
- The locationMoniker (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getGxObjectFromLocation(String catalogPath) throws IOException, AutomationException
getGxObjectFromLocation
in interface IGPUtilities
catalogPath
- The catalogPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean fieldExists(IGPValue pGPValue, IField pField) throws IOException, AutomationException
fieldExists
in interface IGPUtilities
pGPValue
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)pField
- A reference to a com.esri.arcgis.geodatabase.IField (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IField findField(IGPValue pGPValue, String name) throws IOException, AutomationException
The FindField method returns the field object of the specified name in the given geoprocessing value object.
findField
in interface IGPUtilities
pGPValue
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumLayer getMapLayers() throws IOException, AutomationException
getMapLayers
in interface IGPUtilities
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ILayer findMapLayer(String name) throws IOException, AutomationException
findMapLayer
in interface IGPUtilities
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGPLayer findMapLayer2(String name, ILayer[] ppLayer) throws IOException, AutomationException
findMapLayer2
in interface IGPUtilities
name
- The name (in)ppLayer
- A reference to a com.esri.arcgis.carto.ILayer (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumGPValue getGPLayers() throws IOException, AutomationException
getGPLayers
in interface IGPUtilities
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGPLayer makeGPLayer(String catalogPath, IGPDataType pDataType) throws IOException, AutomationException
makeGPLayer
in interface IGPUtilities
catalogPath
- The catalogPath (in)pDataType
- A reference to a com.esri.arcgis.geodatabase.IGPDataType (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGPEnvironment getEnvironment(IArray pEnvironments, String name) throws IOException, AutomationException
The GetEnvironment property provides access to any geoprocessing environments for an application or session.
Refer to the code sample to see how to use this property.
getEnvironment
in interface IGPUtilities
pEnvironments
- A reference to a com.esri.arcgis.system.IArray (in)name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addInternalLayer(ILayer pLayer) throws IOException, AutomationException
addInternalLayer
in interface IGPUtilities
pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addInternalLayer2(ILayer pLayer, IGPLayer pGPLayer) throws IOException, AutomationException
addInternalLayer2
in interface IGPUtilities
pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)pGPLayer
- A reference to a com.esri.arcgis.datasourcesfile.IGPLayer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGPLayer makeGPLayerFromLayer(ILayer pLayer) throws IOException, AutomationException
makeGPLayerFromLayer
in interface IGPUtilities
pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IName createParentFromCatalogPath(String catalogPath) throws IOException, AutomationException
createParentFromCatalogPath
in interface IGPUtilities
catalogPath
- The catalogPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGPValue unpackGPValue(Object pInput) throws IOException, AutomationException
The UnpackGPValue method is used to access the value from a specific function parameter. A code sample is included below. For an extended code sample refer to the Validate Method section of the Building Geoprocessing Functions technical document.
unpackGPValue
in interface IGPUtilities
pInput
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void decodeRasterLayer(IGPValue pValue, IRasterDataset[] ppRD) throws IOException, AutomationException
decodeRasterLayer
in interface IGPUtilities
pValue
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)ppRD
- A reference to a com.esri.arcgis.geodatabase.IRasterDataset (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void decodeFeatureLayer(IGPValue pValue, IFeatureClass[] ppFC, IQueryFilter[] ppQF) throws IOException, AutomationException
The DecodeFeatureLayer method is a wrapper function that quickly and easily creates a value from an object. It is called inside IGPFuncion_Validate .
decodeFeatureLayer
in interface IGPUtilities
pValue
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)ppFC
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (out: use single element array)ppQF
- A reference to a com.esri.arcgis.geodatabase.IQueryFilter (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void decodeTableView(IGPValue pValue, ITable[] ppTable, IQueryFilter[] ppQF) throws IOException, AutomationException
The DecodeTableView method is a wrapper function that quickly and easily creates a value from an object. Like the DecodeFeatureLayer, it is called inside IGPFuncion_Validate .
decodeTableView
in interface IGPUtilities
pValue
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)ppTable
- A reference to a com.esri.arcgis.geodatabase.ITable (out: use single element array)ppQF
- A reference to a com.esri.arcgis.geodatabase.IQueryFilter (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ILayer decodeLayer(IGPValue pValue) throws IOException, AutomationException
decodeLayer
in interface IGPUtilities
pValue
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IStandaloneTable decodeStandaloneTable(IGPValue pValue) throws IOException, AutomationException
decodeStandaloneTable
in interface IGPUtilities
pValue
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IDETable decodeDETable(IGPValue pValue) throws IOException, AutomationException
The DecodeDETable method is a wrapper function to quickly create a value from an object. It returns the table data element specified by the given geoprocessing value object. For a code sample see below.
decodeDETable
in interface IGPUtilities
pValue
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void releaseInternals() throws IOException, AutomationException
releaseInternals
in interface IGPUtilities
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumTable getMapTables() throws IOException, AutomationException
getMapTables
in interface IGPUtilities
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ITable findMapTable(String name) throws IOException, AutomationException
findMapTable
in interface IGPUtilities
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGPTableView findMapTable2(String name, ITable[] ppTable) throws IOException, AutomationException
findMapTable2
in interface IGPUtilities
name
- The name (in)ppTable
- A reference to a com.esri.arcgis.geodatabase.ITable (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumGPValue getGPTableViews() throws IOException, AutomationException
getGPTableViews
in interface IGPUtilities
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isGPTableView(IGPValue pValue) throws IOException, AutomationException
isGPTableView
in interface IGPUtilities
pValue
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGPTableView makeGPTableView(String catalogPath, IGPDataType pDataType) throws IOException, AutomationException
makeGPTableView
in interface IGPUtilities
catalogPath
- The catalogPath (in)pDataType
- A reference to a com.esri.arcgis.geodatabase.IGPDataType (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addInternalTable(ITable pTable) throws IOException, AutomationException
addInternalTable
in interface IGPUtilities
pTable
- A reference to a com.esri.arcgis.geodatabase.ITable (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addInternalTable2(ITable pTable, IGPTableView pGPTableView) throws IOException, AutomationException
addInternalTable2
in interface IGPUtilities
pTable
- A reference to a com.esri.arcgis.geodatabase.ITable (in)pGPTableView
- A reference to a com.esri.arcgis.geoprocessing.IGPTableView (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGPTableView makeGPTableViewFromTable(ITable pTable) throws IOException, AutomationException
makeGPTableViewFromTable
in interface IGPUtilities
pTable
- A reference to a com.esri.arcgis.geodatabase.ITable (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IFields getFields(IGPValue pValue) throws IOException, AutomationException
getFields
in interface IGPUtilities
pValue
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean canAddToMap() throws IOException, AutomationException
canAddToMap
in interface IGPUtilities
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void generateSpRef(IArray pInputTables, ITable pOverlayTable, double growExtentBy, ISpatialReference[] ppSpRef, IEnvelope[] ppExtent, boolean[] pHasMs, double[] pMMin, double[] pMMax, boolean[] pHasZs, double[] pZMin, double[] pZMax) throws IOException, AutomationException
generateSpRef
in interface IGPUtilities
pInputTables
- A reference to a com.esri.arcgis.system.IArray (in)pOverlayTable
- A reference to a com.esri.arcgis.geodatabase.ITable (in)growExtentBy
- The growExtentBy (in)ppSpRef
- A reference to a com.esri.arcgis.geometry.ISpatialReference (out: use single element array)ppExtent
- A reference to a com.esri.arcgis.geometry.IEnvelope (out: use single element array)pHasMs
- The pHasMs (out: use single element array)pMMin
- The pMMin (out: use single element array)pMMax
- The pMMax (out: use single element array)pHasZs
- The pHasZs (out: use single element array)pZMin
- The pZMin (out: use single element array)pZMax
- The pZMax (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setGridIndex(IGPEnvironmentManager pEnvMgr, IArray pInputTables, double spatialIndex1, double spatialIndex2, double spatialIndex3, Object pUnk, IGeometryDef pGeometryDef) throws IOException, AutomationException
setGridIndex
in interface IGPUtilities
pEnvMgr
- A reference to a com.esri.arcgis.geoprocessing.IGPEnvironmentManager (in)pInputTables
- A reference to a com.esri.arcgis.system.IArray (in)spatialIndex1
- The spatialIndex1 (in)spatialIndex2
- The spatialIndex2 (in)spatialIndex3
- The spatialIndex3 (in)pUnk
- A reference to another Object (IUnknown) (in)pGeometryDef
- A reference to a com.esri.arcgis.geodatabase.IGeometryDef (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isDatasetType(Object pUnknown) throws IOException, AutomationException
isDatasetType
in interface IGPUtilities
pUnknown
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void removeFromMap(IGPValue pGPValue, String name) throws IOException, AutomationException
removeFromMap
in interface IGPUtilities
pGPValue
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isDerived(Object pInput) throws IOException, AutomationException
isDerived
in interface IGPUtilities
pInput
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void refreshView() throws IOException, AutomationException
refreshView
in interface IGPUtilities
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void packGPValue(IGPValue pValue, Object pInput) throws IOException, AutomationException
The PackGPValue method is used to assign, for example an output value to a specific function parameter. such as a derived output. A code sample is included below. For an extended code sample refer to the Validate Method section of the Building Geoprocessing Functions technical document.
packGPValue
in interface IGPUtilities
pValue
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)pInput
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGPValue createParameterValue(String text, IGPDataType pDataType, int direction) throws IOException, AutomationException
createParameterValue
in interface IGPUtilities
text
- The text (in)pDataType
- A reference to a com.esri.arcgis.geodatabase.IGPDataType (in)direction
- A com.esri.arcgis.geoprocessing.esriGPParameterDirection constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean validateExists(IGPValue pGPValue, boolean checkDerived) throws IOException, AutomationException
validateExists
in interface IGPUtilities
pGPValue
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)checkDerived
- The checkDerived (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getGxObject(IDataElement pDataElement) throws IOException, AutomationException
getGxObject
in interface IGPUtilities
pDataElement
- A reference to a com.esri.arcgis.geodatabase.IDataElement (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IArray getGxObjects(String catalogPath) throws IOException, AutomationException
getGxObjects
in interface IGPUtilities
catalogPath
- The catalogPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IArray makeDataElements(String catalogPath, IDEBrowseOptions pBrowseOptions) throws IOException, AutomationException
makeDataElements
in interface IGPUtilities
catalogPath
- The catalogPath (in)pBrowseOptions
- A reference to a com.esri.arcgis.geodatabase.IDEBrowseOptions (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumGPValue getGPMapData() throws IOException, AutomationException
getGPMapData
in interface IGPUtilities
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGPValue makeGPValueFromObject(Object pUnk) throws IOException, AutomationException
makeGPValueFromObject
in interface IGPUtilities
pUnk
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void removeInternalValues() throws IOException, AutomationException
removeInternalValues
in interface IGPUtilities
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void removeInternalLayer(String name) throws IOException, AutomationException
removeInternalLayer
in interface IGPUtilities
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void removeInternalTable(String name) throws IOException, AutomationException
removeInternalTable
in interface IGPUtilities
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IRaster decodeRaster(IGPValue pValue) throws IOException, AutomationException
decodeRaster
in interface IGPUtilities
pValue
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISpatialReference getGPSpRefEnv(IGPEnvironmentManager pEnvMgr, ISpatialReference pSrcSpRef, IEnvelope pNewExtent, double newMMin, double newMMax, double newZMin, double newZMax, Object pWkspFDS) throws IOException, AutomationException
The GetGPSpRefEnv method takes in a pEnvMgr and a pSrcSpRef object and returns a SpatialReference object.
getGPSpRefEnv
in interface IGPUtilities
pEnvMgr
- A reference to a com.esri.arcgis.geoprocessing.IGPEnvironmentManager (in)pSrcSpRef
- A reference to a com.esri.arcgis.geometry.ISpatialReference (in)pNewExtent
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)newMMin
- The newMMin (in)newMMax
- The newMMax (in)newZMin
- The newZMin (in)newZMax
- The newZMax (in)pWkspFDS
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void removeInternalLayerEx(ILayer pLayer) throws IOException, AutomationException
removeInternalLayerEx
in interface IGPUtilities
pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void removeInternalTableEx(ITable pTable) throws IOException, AutomationException
removeInternalTableEx
in interface IGPUtilities
pTable
- A reference to a com.esri.arcgis.geodatabase.ITable (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object open(IGPValue pValue) throws IOException, AutomationException
open
in interface IGPUtilities2
pValue
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void saveLayer(String catalogPath, ILayer pLayer) throws IOException, AutomationException
saveLayer
in interface IGPUtilities2
catalogPath
- The catalogPath (in)pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IActiveView getActiveView() throws IOException, AutomationException
getActiveView
in interface IGPUtilities2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IMap getMap() throws IOException, AutomationException
getMap
in interface IGPUtilities2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IBasicMap getBasicMap() throws IOException, AutomationException
getBasicMap
in interface IGPUtilities2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean inApplication() throws IOException, AutomationException
inApplication
in interface IGPUtilities2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ILayer makeLayer(IGPValue pValue, String name, Object pUnkRenderer) throws IOException, AutomationException
makeLayer
in interface IGPUtilities2
pValue
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)name
- The name (in)pUnkRenderer
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IStatusBar getStatusBar() throws IOException, AutomationException
getStatusBar
in interface IGPUtilities2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void startEditOperation(IWorkspaceEdit pWorkspace, boolean bHasPrivateEditSession) throws IOException, AutomationException
startEditOperation
in interface IGPUtilities2
pWorkspace
- A reference to a com.esri.arcgis.geodatabase.IWorkspaceEdit (in)bHasPrivateEditSession
- The bHasPrivateEditSession (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void abortEditOperation(IWorkspaceEdit pWorkspace) throws IOException, AutomationException
abortEditOperation
in interface IGPUtilities2
pWorkspace
- A reference to a com.esri.arcgis.geodatabase.IWorkspaceEdit (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void stopEditOperation(IWorkspaceEdit pWorkspace, String operationLabel) throws IOException, AutomationException
stopEditOperation
in interface IGPUtilities2
pWorkspace
- A reference to a com.esri.arcgis.geodatabase.IWorkspaceEdit (in)operationLabel
- The operationLabel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setVariableManagerByRef(IGPVariableManager ppVariableManager) throws IOException, AutomationException
setVariableManagerByRef
in interface IGPUtilities2
ppVariableManager
- A reference to a com.esri.arcgis.geoprocessing.IGPVariableManager (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGPVariableManager getVariableManager() throws IOException, AutomationException
getVariableManager
in interface IGPUtilities2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void generateGeographicTransformDomain(Object iUnk, IGPCodedValueDomain pGTDomain, ISpatialReference pInSR, ISpatialReference pOutSR, IGPMessages pMessages) throws IOException, AutomationException
generateGeographicTransformDomain
in interface IGPUtilities2
iUnk
- A reference to another Object (IUnknown) (in)pGTDomain
- A reference to a com.esri.arcgis.geodatabase.IGPCodedValueDomain (in)pInSR
- A reference to a com.esri.arcgis.geometry.ISpatialReference (in)pOutSR
- A reference to a com.esri.arcgis.geometry.ISpatialReference (in)pMessages
- A reference to a com.esri.arcgis.geodatabase.IGPMessages (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getGTOperationSet(IGPValue pGTs, ISpatialReference pInSR, ISpatialReference pOutSR, ICompositeGeoTransformation ppGTs) throws IOException, AutomationException
getGTOperationSet
in interface IGPUtilities2
pGTs
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)pInSR
- A reference to a com.esri.arcgis.geometry.ISpatialReference (in)pOutSR
- A reference to a com.esri.arcgis.geometry.ISpatialReference (in)ppGTs
- A reference to a com.esri.arcgis.geometry.ICompositeGeoTransformation (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnvelope getExtent(IGPValue pValue, int[] envType) throws IOException, AutomationException
getExtent
in interface IGPUtilities2
pValue
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)envType
- A com.esri.arcgis.geoprocessing.esriGPExtentEnum constant (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISpatialReference getGPSpRefEnvEx(IGPEnvironmentManager pEnvMgr, ISpatialReference pSrcSpRef, ISpatialReference pTgtSpRef, IEnvelope pNewExtent, double newMMin, double newMMax, double newZMin, double newZMax, Object pWkspFDS) throws IOException, AutomationException
getGPSpRefEnvEx
in interface IGPUtilities2
pEnvMgr
- A reference to a com.esri.arcgis.geoprocessing.IGPEnvironmentManager (in)pSrcSpRef
- A reference to a com.esri.arcgis.geometry.ISpatialReference (in)pTgtSpRef
- A reference to a com.esri.arcgis.geometry.ISpatialReference (in)pNewExtent
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)newMMin
- The newMMin (in)newMMax
- The newMMax (in)newZMin
- The newZMin (in)newZMax
- The newZMax (in)pWkspFDS
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void createToolboxFromFactory(String alias, String location, String toolboxName) throws IOException, AutomationException
createToolboxFromFactory
in interface IGPUtilities2
alias
- The alias (in)location
- The location (in)toolboxName
- The toolboxName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setInternalMap(IMap pMap) throws IOException, AutomationException
setInternalMap
in interface IGPUtilities2
pMap
- A reference to a com.esri.arcgis.carto.IMap (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getLayerName(IGPValue pValue, String name) throws IOException, AutomationException
getLayerName
in interface IGPUtilities2
pValue
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void removeInternalData() throws IOException, AutomationException
removeInternalData
in interface IGPUtilities2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IWorkspace getInMemoryWorkspace() throws IOException, AutomationException
getInMemoryWorkspace
in interface IGPUtilities2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void clearInMemoryWorkspace() throws IOException, AutomationException
clearInMemoryWorkspace
in interface IGPUtilities2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object openFromString(String nameString) throws IOException, AutomationException
openFromString
in interface IGPUtilities2
nameString
- The nameString (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setupEditSession(IClass pTable) throws IOException, AutomationException
setupEditSession
in interface IGPUtilities2
pTable
- A reference to a com.esri.arcgis.geodatabase.IClass (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void cleanupEditSession(boolean abort) throws IOException, AutomationException
cleanupEditSession
in interface IGPUtilities2
abort
- The abort (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void removeFromMapEx(IGPValue pGPValue) throws IOException, AutomationException
removeFromMapEx
in interface IGPUtilities2
pGPValue
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addToMapEx(IGPValue pGPValue, String name, boolean temporary, Object pUnkRenderer, boolean visible) throws IOException, AutomationException
addToMapEx
in interface IGPUtilities2
pGPValue
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)name
- The name (in)temporary
- The temporary (in)pUnkRenderer
- A reference to another Object (IUnknown) (in)visible
- The visible (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ILayer openLayerFromLocation(String catalogPath) throws IOException, AutomationException
openLayerFromLocation
in interface IGPUtilities3
catalogPath
- The catalogPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getMessage(int iD) throws IOException, AutomationException
getMessage
in interface IGPMessageManager
iD
- The iD (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String generateMessage(int type, int iD) throws IOException, AutomationException
generateMessage
in interface IGPMessageManager
type
- A com.esri.arcgis.geodatabase.esriGPMessageType constant (in)iD
- The iD (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addMessage(int type, int iD, IGPMessages msgs) throws IOException, AutomationException
addMessage
in interface IGPMessageManager
type
- A com.esri.arcgis.geodatabase.esriGPMessageType constant (in)iD
- The iD (in)msgs
- A reference to a com.esri.arcgis.geodatabase.IGPMessages (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addMessage1Args(int type, int iD, String arg1, IGPMessages msgs) throws IOException, AutomationException
addMessage1Args
in interface IGPMessageManager
type
- A com.esri.arcgis.geodatabase.esriGPMessageType constant (in)iD
- The iD (in)arg1
- The arg1 (in)msgs
- A reference to a com.esri.arcgis.geodatabase.IGPMessages (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addMessage2Args(int type, int iD, String arg1, String arg2, IGPMessages msgs) throws IOException, AutomationException
addMessage2Args
in interface IGPMessageManager
type
- A com.esri.arcgis.geodatabase.esriGPMessageType constant (in)iD
- The iD (in)arg1
- The arg1 (in)arg2
- The arg2 (in)msgs
- A reference to a com.esri.arcgis.geodatabase.IGPMessages (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addMessageText(int type, int iD, String msg, IGPMessages msgs) throws IOException, AutomationException
addMessageText
in interface IGPMessageManager
type
- A com.esri.arcgis.geodatabase.esriGPMessageType constant (in)iD
- The iD (in)msg
- The msg (in)msgs
- A reference to a com.esri.arcgis.geodatabase.IGPMessages (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMessage(int type, int iD, int pos, IGPMessages msgs) throws IOException, AutomationException
setMessage
in interface IGPMessageManager
type
- A com.esri.arcgis.geodatabase.esriGPMessageType constant (in)iD
- The iD (in)pos
- The pos (in)msgs
- A reference to a com.esri.arcgis.geodatabase.IGPMessages (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMessage1Args(int type, int iD, String arg1, int pos, IGPMessages msgs) throws IOException, AutomationException
setMessage1Args
in interface IGPMessageManager
type
- A com.esri.arcgis.geodatabase.esriGPMessageType constant (in)iD
- The iD (in)arg1
- The arg1 (in)pos
- The pos (in)msgs
- A reference to a com.esri.arcgis.geodatabase.IGPMessages (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMessage2Args(int type, int iD, String arg1, String arg2, int pos, IGPMessages msgs) throws IOException, AutomationException
setMessage2Args
in interface IGPMessageManager
type
- A com.esri.arcgis.geodatabase.esriGPMessageType constant (in)iD
- The iD (in)arg1
- The arg1 (in)arg2
- The arg2 (in)pos
- The pos (in)msgs
- A reference to a com.esri.arcgis.geodatabase.IGPMessages (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMessageText(int type, int iD, String msg, int pos, IGPMessages msgs) throws IOException, AutomationException
setMessageText
in interface IGPMessageManager
type
- A com.esri.arcgis.geodatabase.esriGPMessageType constant (in)iD
- The iD (in)msg
- The msg (in)pos
- The pos (in)msgs
- A reference to a com.esri.arcgis.geodatabase.IGPMessages (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void chainMessage(int type, int iD) throws IOException, AutomationException
chainMessage
in interface IGPMessageManager
type
- A com.esri.arcgis.geodatabase.esriGPMessageType constant (in)iD
- The iD (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void chainMessage1Args(int type, int iD, String arg1) throws IOException, AutomationException
chainMessage1Args
in interface IGPMessageManager
type
- A com.esri.arcgis.geodatabase.esriGPMessageType constant (in)iD
- The iD (in)arg1
- The arg1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void chainMessage2Args(int type, int iD, String arg1, String arg2) throws IOException, AutomationException
chainMessage2Args
in interface IGPMessageManager
type
- A com.esri.arcgis.geodatabase.esriGPMessageType constant (in)iD
- The iD (in)arg1
- The arg1 (in)arg2
- The arg2 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void chainMessageText(int type, int iD, String msg) throws IOException, AutomationException
chainMessageText
in interface IGPMessageManager
type
- A com.esri.arcgis.geodatabase.esriGPMessageType constant (in)iD
- The iD (in)msg
- The msg (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void checkForErrors(long fdoError, IGPMessages messages, boolean keepAllErrors) throws IOException, AutomationException
checkForErrors
in interface IGPMessageManager
fdoError
- An error code (in)messages
- A reference to a com.esri.arcgis.geodatabase.IGPMessages (in)keepAllErrors
- The keepAllErrors (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void lookForGPChainedErrors(IGPMessages messages) throws IOException, AutomationException
lookForGPChainedErrors
in interface IGPMessageManager
messages
- A reference to a com.esri.arcgis.geodatabase.IGPMessages (in)
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 |