|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGPUtilities
Provides access to the properties/methods of a geoprocessing utilities object.
The IGPUtilities interface provides access to the GPUtilities object which contains many useful helper methods and properties to provide easier access to other ArcObjects. For example, the OpenFeatureClassFromString method can create an IFeatureClass object by simply providing the ArcCatalog path as a string.
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 .
Method Summary | |
---|---|
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 |
addToMap(IGPValue pGPValue,
String name,
boolean temporary,
Object pUnkRenderer)
Adds the given geoprocessing value object to the application display. |
boolean |
canAddToMap()
Returns whether datasets can be added to the current application display. |
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. |
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 |
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 |
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. |
Object |
getCatalog()
Returns the catalog object shared between geoprocessing operations. |
IGPEnvironment |
getEnvironment(IArray pEnvironments,
String name)
Locates a geoprocessing environment with the given name in the given array. |
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. |
IEnumGPValue |
getGPTableViews()
Returns an enumeration of geoprocessing table views. |
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. |
IEnumLayer |
getMapLayers()
Returns an enumeration of the current layers in the application. |
IEnumTable |
getMapTables()
Returns an enumeration of standalone tables in the current map. |
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. |
String |
getUnQualifiedCatalogPath(IGPValue pValue)
Returns the unqualified path by striping the GDBs database and user names. |
String |
getWorkspace()
Sets the path to the current workspace. |
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. |
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. |
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. |
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 |
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 |
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 |
setRefreshCatalogParent(boolean pRefresh)
Returns whether catalog objects, used by the shared catalog object, are refreshed during geoprocessing operations. |
void |
setWorkspace(String workPath)
Sets the path to the current workspace. |
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. |
Method Detail |
---|
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.
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.void internalValidateValue(IGPParameter pParameter, Object pValue, boolean updateValue, boolean honorDerivedFlag, IGPEnvironmentManager pEnvMgr, IGPMessage pMessage) throws IOException, AutomationException
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.boolean isBadMessage(IGPMessages pMessages, int index) throws IOException, AutomationException
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.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].
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.void qualifyOutputDataElement(IGPValue pValue) throws IOException, AutomationException
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.String qualifyOutputCatalogPath(String catalogPath) throws IOException, AutomationException
catalogPath
- The catalogPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getUnQualifiedCatalogPath(IGPValue pValue) throws IOException, AutomationException
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.void setWorkspace(String workPath) throws IOException, AutomationException
workPath
- The workPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getWorkspace() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Object getCatalog() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isRefreshCatalogParent() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setRefreshCatalogParent(boolean pRefresh) throws IOException, AutomationException
pRefresh
- The pRefresh (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IDataElement makeDataElement(String catalogPath, IGPDataType pDataType, IDEBrowseOptions pExpandOptions) throws IOException, AutomationException
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.IDataElement makeDataElementFromNameObject(IName name) throws IOException, AutomationException
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.void expandDataElement(IDataElement pInDE, IDEBrowseOptions pExpandOptions) throws IOException, AutomationException
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.IDataElement createDataElement(String catalogPath, IGPDataType pDataType, String optionalWorkspace) throws IOException, AutomationException
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.IGPValue createFeatureLayer(String catalogPath) throws IOException, AutomationException
catalogPath
- The catalogPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IRasterDataset openRasterDatasetFromString(String catalogPath) throws IOException, AutomationException
catalogPath
- The catalogPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.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.
catalogPath
- The catalogPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ITable openTableFromString(String catalogPath) throws IOException, AutomationException
catalogPath
- The catalogPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IRasterLayer openRasterLayerFromString(String catalogPath) throws IOException, AutomationException
catalogPath
- The catalogPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IFeatureLayer openFeatureLayerFromString(String catalogPath) throws IOException, AutomationException
catalogPath
- The catalogPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.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.
catalogPath
- The catalogPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.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.
catalogPath
- The catalogPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IName createRasterCatalogName(String catalogPath) throws IOException, AutomationException
catalogPath
- The catalogPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.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.
catalogPath
- The catalogPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.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.
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.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].
catalogPath
- The catalogPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addToMap(IGPValue pGPValue, String name, boolean temporary, Object pUnkRenderer) throws IOException, AutomationException
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.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.
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.void exportFeatureClass(IDataElement pSourceDataElement, IDataElement pTargetDataElement) throws IOException, AutomationException
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.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.
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.void rename(IGPValue pSourceGPValue, IGPValue pTargetGPValue) throws IOException, AutomationException
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.void copy(IGPValue pSourceGPValue, IGPValue pTargetGPValue) throws IOException, AutomationException
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.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.
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.boolean compareWildCard(String wildCard, String data) throws IOException, AutomationException
wildCard
- The wildCard (in)data
- The data (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IName getNameObject(IDataElement pDataElement) throws IOException, AutomationException
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.IName getNameObjectFromLocation(String locationMoniker) throws IOException, AutomationException
locationMoniker
- The locationMoniker (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Object getGxObjectFromLocation(String catalogPath) throws IOException, AutomationException
catalogPath
- The catalogPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean fieldExists(IGPValue pGPValue, IField pField) throws IOException, AutomationException
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.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.
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.IEnumLayer getMapLayers() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILayer findMapLayer(String name) throws IOException, AutomationException
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGPLayer findMapLayer2(String name, ILayer[] ppLayer) throws IOException, AutomationException
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.IEnumGPValue getGPLayers() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGPLayer makeGPLayer(String catalogPath, IGPDataType pDataType) throws IOException, AutomationException
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.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.
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.void addInternalLayer(ILayer pLayer) throws IOException, AutomationException
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.void addInternalLayer2(ILayer pLayer, IGPLayer pGPLayer) throws IOException, AutomationException
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.IGPLayer makeGPLayerFromLayer(ILayer pLayer) throws IOException, AutomationException
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.IName createParentFromCatalogPath(String catalogPath) throws IOException, AutomationException
catalogPath
- The catalogPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.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.
pInput
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void decodeRasterLayer(IGPValue pValue, IRasterDataset[] ppRD) throws IOException, AutomationException
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.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 .
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.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 .
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.ILayer decodeLayer(IGPValue pValue) throws IOException, AutomationException
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.IStandaloneTable decodeStandaloneTable(IGPValue pValue) throws IOException, AutomationException
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.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.
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.void releaseInternals() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnumTable getMapTables() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ITable findMapTable(String name) throws IOException, AutomationException
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGPTableView findMapTable2(String name, ITable[] ppTable) throws IOException, AutomationException
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.IEnumGPValue getGPTableViews() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isGPTableView(IGPValue pValue) throws IOException, AutomationException
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.IGPTableView makeGPTableView(String catalogPath, IGPDataType pDataType) throws IOException, AutomationException
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.void addInternalTable(ITable pTable) throws IOException, AutomationException
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.void addInternalTable2(ITable pTable, IGPTableView pGPTableView) throws IOException, AutomationException
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.IGPTableView makeGPTableViewFromTable(ITable pTable) throws IOException, AutomationException
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.IFields getFields(IGPValue pValue) throws IOException, AutomationException
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.boolean canAddToMap() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.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
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.void setGridIndex(IGPEnvironmentManager pEnvMgr, IArray pInputTables, double spatialIndex1, double spatialIndex2, double spatialIndex3, Object pUnk, IGeometryDef pGeometryDef) throws IOException, AutomationException
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.boolean isDatasetType(Object pUnknown) throws IOException, AutomationException
pUnknown
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void removeFromMap(IGPValue pGPValue, String name) throws IOException, AutomationException
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.boolean isDerived(Object pInput) throws IOException, AutomationException
pInput
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void refreshView() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.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.
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.IGPValue createParameterValue(String text, IGPDataType pDataType, int direction) throws IOException, AutomationException
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.boolean validateExists(IGPValue pGPValue, boolean checkDerived) throws IOException, AutomationException
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.Object getGxObject(IDataElement pDataElement) throws IOException, AutomationException
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.IArray getGxObjects(String catalogPath) throws IOException, AutomationException
catalogPath
- The catalogPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IArray makeDataElements(String catalogPath, IDEBrowseOptions pBrowseOptions) throws IOException, AutomationException
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.IEnumGPValue getGPMapData() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGPValue makeGPValueFromObject(Object pUnk) throws IOException, AutomationException
pUnk
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void removeInternalValues() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void removeInternalLayer(String name) throws IOException, AutomationException
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void removeInternalTable(String name) throws IOException, AutomationException
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IRaster decodeRaster(IGPValue pValue) throws IOException, AutomationException
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.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.
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.void removeInternalLayerEx(ILayer pLayer) throws IOException, AutomationException
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.void removeInternalTableEx(ITable pTable) throws IOException, AutomationException
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |