| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IGPUtilities2
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.
| Method Summary | |
|---|---|
 void | 
abortEditOperation(IWorkspaceEdit pWorkspace)
Abort edit operation within the application.  | 
 void | 
addToMapEx(IGPValue pGPValue,
           String name,
           boolean temporary,
           Object pUnkRenderer,
           boolean visible)
Adds the given geoprocessing value object to the application display.  | 
 void | 
cleanupEditSession(boolean abort)
Cleans up any edit session.  | 
 void | 
clearInMemoryWorkspace()
Clear the virtual workspace.  | 
 void | 
createToolboxFromFactory(String alias,
                         String location,
                         String toolboxName)
Creates a toolbox at the given location for a function factory of a given alias.  | 
 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.  | 
 IActiveView | 
getActiveView()
Get active view.  | 
 IBasicMap | 
getBasicMap()
Gets the basic map associated with the application.  | 
 IEnvelope | 
getExtent(IGPValue pValue,
          int[] envType)
Gets the type and value of extent of the given value.  | 
 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.  | 
 void | 
getGTOperationSet(IGPValue pGTs,
                  ISpatialReference pInSR,
                  ISpatialReference pOutSR,
                  ICompositeGeoTransformation ppGTs)
Gets the set of geographic transformations.  | 
 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.  | 
 IStatusBar | 
getStatusBar()
Gets the status bar associated with the application.  | 
 IGPVariableManager | 
getVariableManager()
Sets the Variable Manager.  | 
 boolean | 
inApplication()
Indicates if the program is running in an ArcGIS applicaiton.  | 
 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.  | 
 Object | 
openFromString(String nameString)
Returns the dataset of the given value.  | 
 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 | 
saveLayer(String catalogPath,
          ILayer pLayer)
Saves a layer to a given location on disk.  | 
 void | 
setInternalMap(IMap pMap)
Sets the internal map used by the geoprocessor.  | 
 void | 
setupEditSession(IClass pTable)
Starts an edit session if needed.  | 
 void | 
setVariableManagerByRef(IGPVariableManager ppVariableManager)
Sets the Variable Manager.  | 
 void | 
startEditOperation(IWorkspaceEdit pWorkspace,
                   boolean bHasPrivateEditSession)
Start edit operation within the application.  | 
 void | 
stopEditOperation(IWorkspaceEdit pWorkspace,
                  String operationLabel)
Stop edit operation within the application.  | 
| Method Detail | 
|---|
Object open(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 saveLayer(String catalogPath,
               ILayer pLayer)
               throws IOException,
                      AutomationException
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.
IActiveView getActiveView()
                          throws IOException,
                                 AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
IMap getMap()
            throws IOException,
                   AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
IBasicMap getBasicMap()
                      throws IOException,
                             AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean inApplication()
                      throws IOException,
                             AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
ILayer makeLayer(IGPValue pValue,
                 String name,
                 Object pUnkRenderer)
                 throws IOException,
                        AutomationException
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.
IStatusBar getStatusBar()
                        throws IOException,
                               AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void startEditOperation(IWorkspaceEdit pWorkspace,
                        boolean bHasPrivateEditSession)
                        throws IOException,
                               AutomationException
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.
void abortEditOperation(IWorkspaceEdit pWorkspace)
                        throws IOException,
                               AutomationException
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.
void stopEditOperation(IWorkspaceEdit pWorkspace,
                       String operationLabel)
                       throws IOException,
                              AutomationException
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.
void setVariableManagerByRef(IGPVariableManager ppVariableManager)
                             throws IOException,
                                    AutomationException
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.
IGPVariableManager getVariableManager()
                                      throws IOException,
                                             AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void generateGeographicTransformDomain(Object iUnk,
                                       IGPCodedValueDomain pGTDomain,
                                       ISpatialReference pInSR,
                                       ISpatialReference pOutSR,
                                       IGPMessages pMessages)
                                       throws IOException,
                                              AutomationException
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.
void getGTOperationSet(IGPValue pGTs,
                       ISpatialReference pInSR,
                       ISpatialReference pOutSR,
                       ICompositeGeoTransformation ppGTs)
                       throws IOException,
                              AutomationException
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.
IEnvelope getExtent(IGPValue pValue,
                    int[] envType)
                    throws IOException,
                           AutomationException
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.
ISpatialReference getGPSpRefEnvEx(IGPEnvironmentManager pEnvMgr,
                                  ISpatialReference pSrcSpRef,
                                  ISpatialReference pTgtSpRef,
                                  IEnvelope pNewExtent,
                                  double newMMin,
                                  double newMMax,
                                  double newZMin,
                                  double newZMax,
                                  Object pWkspFDS)
                                  throws IOException,
                                         AutomationException
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.
void createToolboxFromFactory(String alias,
                              String location,
                              String toolboxName)
                              throws IOException,
                                     AutomationException
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.
void setInternalMap(IMap pMap)
                    throws IOException,
                           AutomationException
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.
String getLayerName(IGPValue pValue,
                    String name)
                    throws IOException,
                           AutomationException
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.
void removeInternalData()
                        throws IOException,
                               AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
IWorkspace getInMemoryWorkspace()
                                throws IOException,
                                       AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void clearInMemoryWorkspace()
                            throws IOException,
                                   AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
Object openFromString(String nameString)
                      throws IOException,
                             AutomationException
nameString - The nameString  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setupEditSession(IClass pTable)
                      throws IOException,
                             AutomationException
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.
void cleanupEditSession(boolean abort)
                        throws IOException,
                               AutomationException
abort - The abort  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void removeFromMapEx(IGPValue pGPValue)
                     throws IOException,
                            AutomationException
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 addToMapEx(IGPValue pGPValue,
                String name,
                boolean temporary,
                Object pUnkRenderer,
                boolean visible)
                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)visible - The visible  (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 | ||||||||