Changeset 69

Show
Ignore:
Timestamp:
05/02/07 17:37:37 (6 years ago)
Author:
jjr8
Message:

Clarified error messages and documentation relating to the management of the ArcGIS geoprocessor object.

Location:
MGET/Trunk/PythonPackage
Files:
9 modified

Legend:

Unmodified
Added
Removed
  • MGET/Trunk/PythonPackage/dist/TracOnlineDocumentation/Documentation/PythonReference/Class_GeoEco.ArcGIS.GeoprocessorManager.html

    r61 r69  
    44            td.metadataTitle { font-size: 80%; font-weight: bold; font-family: avantgarde, sans-serif; } 
    55            td.metadataValue { padding-left: 0.5em; } 
    6           </style></head><body><div class="navigation"><div><table align="center" width="100%" cellpadding="0" cellspacing="2"><tr><td class="online-navigation"><a title="GeoEco.ArcGIS Module" href="Module_GeoEco.ArcGIS.html?format=raw"><img src="previous.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Previous Page" /></a></td><td class="online-navigation"><a title="Module Index" href="Module_GeoEco.ArcGIS.html?format=raw"><img src="up.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Up one Level" /></a></td><td class="online-navigation"><a title="Geoprocessor Property" href="Property_GeoEco.ArcGIS.GeoprocessorManager.Geoprocessor.html?format=raw"><img src="next.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Next Page" /></a></td><td align="center" width="100%">GeoEco Python Reference</td><td class="online-navigation"><a title="Table of Contents" href="TableOfContents.html?format=raw"><img src="contents.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Table of Contents" /></a></td><td class="online-navigation"><a title="Module Index" href="ModuleIndex.html?format=raw"><img src="modules.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Module Index" /></a></td><td class="online-navigation"><img src="blank.png?format=raw" border="0" align="bottom" height="32" width="32" alt="" /></td></tr></table><div class="online-navigation"><b class="navlabel">Previous:</b> <a class="sectref" href="Module_GeoEco.ArcGIS.html?format=raw">GeoEco.ArcGIS Module</a> <b class="navlabel">Up:</b> <a class="sectref" href="Module_GeoEco.ArcGIS.html?format=raw">Module Index</a> <b class="navlabel">Next:</b> <a class="sectref" href="Property_GeoEco.ArcGIS.GeoprocessorManager.Geoprocessor.html?format=raw">Geoprocessor Property</a> </div><hr /></div></div><h1><tt class="class">GeoprocessorManager</tt> Class</h1><p>Manages the instance of the ArcGIS geoprocessor object used whenever any GeoEco function needs to invoke ArcGIS tools.</p><table cellpadding="0" cellspacing="0"><tr valign="baseline"><td class="metadataTitle">Module:</td><td class="metadataValue"><tt class="module"><a href="Module_GeoEco.ArcGIS.html?format=raw">GeoEco.ArcGIS</a></tt></td></tr><tr valign="baseline"><td class="metadataTitle">Intended use:</td><td class="metadataValue">Some methods are intended for GeoEco internal use only and are not recommended for external callers</td></tr><tr valign="baseline"><td class="metadataTitle">COM:</td><td class="metadataValue">Exposed as COM class <a style="font-family: verdana, sans serif; font-size: small;" href="../COMReference/Class_GeoEco.GeoprocessorManager.html?format=raw">GeoEco.GeoprocessorManager</a></td></tr><tr valign="baseline"><td class="metadataTitle">ArcGIS:</td><td class="metadataValue">Not exposed to ArcGIS</td></tr></table><h3>Properties</h3><dl><dt><b><tt class="member"><a href="Property_GeoEco.ArcGIS.GeoprocessorManager.Geoprocessor.html?format=raw">Geoprocessor</a></tt></b></dt><dd>The ArcGIS geoprocessor object used whenever any GeoEco function needs to invoke ArcGIS tools.</dd></dl><h3>Read-only properties</h3><dl><dt><b><tt class="member"><a href="Property_GeoEco.ArcGIS.GeoprocessorManager.ArcGISMajorVersion.html?format=raw">ArcGISMajorVersion</a></tt></b></dt><dd>The major version number for ArcGIS, if it is installed on the machine.</dd></dl><dl><dt><b><tt class="member"><a href="Property_GeoEco.ArcGIS.GeoprocessorManager.ArcGISMinorVersion.html?format=raw">ArcGISMinorVersion</a></tt></b></dt><dd>The minor version number for ArcGIS, if it is installed on the machine.</dd></dl><dl><dt><b><tt class="member"><a href="Property_GeoEco.ArcGIS.GeoprocessorManager.ArcGISServicePack.html?format=raw">ArcGISServicePack</a></tt></b></dt><dd>The service pack number for ArcGIS, if it is installed on the machine.</dd></dl><dl><dt><b><tt class="member"><a href="Property_GeoEco.ArcGIS.GeoprocessorManager.WrappedGeoprocessor.html?format=raw">WrappedGeoprocessor</a></tt></b></dt><dd>The Geoprocessor property, wrapped by a class that logs messages whenever the geoprocessor is accessed.</dd></dl><h3>Classmethods</h3><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"><td style="white-space: nowrap;"><b><tt class="method"><a href="Method_GeoEco.ArcGIS.GeoprocessorManager.GetArcGISMajorVersion.html?format=raw">GetArcGISMajorVersion</a></tt></b>(</td><td>)</td></tr></table></dt><dd>Returns the value of the ArcGISMajorVersion property.</dd></dl><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"><td style="white-space: nowrap;"><b><tt class="method"><a href="Method_GeoEco.ArcGIS.GeoprocessorManager.GetArcGISMinorVersion.html?format=raw">GetArcGISMinorVersion</a></tt></b>(</td><td>)</td></tr></table></dt><dd>Returns the value of the ArcGISMinorVersion property.</dd></dl><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"><td style="white-space: nowrap;"><b><tt class="method"><a href="Method_GeoEco.ArcGIS.GeoprocessorManager.GetArcGISServicePack.html?format=raw">GetArcGISServicePack</a></tt></b>(</td><td>)</td></tr></table></dt><dd>Returns the value of the ArcGISServicePack property.</dd></dl><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"><td style="white-space: nowrap;"><b><tt class="method"><a href="Method_GeoEco.ArcGIS.GeoprocessorManager.GetGeoprocessor.html?format=raw">GetGeoprocessor</a></tt></b>(</td><td>)</td></tr></table></dt><dd>Returns the value of the Geoprocessor property.</dd></dl><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"><td style="white-space: nowrap;"><b><tt class="method"><a href="Method_GeoEco.ArcGIS.GeoprocessorManager.GetWrappedGeoprocessor.html?format=raw">GetWrappedGeoprocessor</a></tt></b>(</td><td>)</td></tr></table></dt><dd>Returns the value of the WrappedGeoprocessor property.</dd></dl><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"><td style="white-space: nowrap;"><b><tt class="method"><a href="Method_GeoEco.ArcGIS.GeoprocessorManager.InitializeGeoprocessor.html?format=raw">InitializeGeoprocessor</a></tt></b>(</td><td>)</td></tr></table></dt><dd>Initializes the Geoprocessor property with a new ArcGIS geoprocessor object.</dd></dl><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"><td style="white-space: nowrap;"><b><tt class="method"><a href="Method_GeoEco.ArcGIS.GeoprocessorManager.InitializeGeoprocessorForDependency.html?format=raw">InitializeGeoprocessorForDependency</a></tt></b>(</td><td><big>[</big><var>dependency</var><big>]</big><var></var>)</td></tr></table></dt><dd>Initializes the Geoprocessor property with a new ArcGIS geoprocessor object on behalf of the specified dependency declared by a GeoEco class method.</dd></dl><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"><td style="white-space: nowrap;"><b><tt class="method"><a href="Method_GeoEco.ArcGIS.GeoprocessorManager.RefreshCatalog.html?format=raw">RefreshCatalog</a></tt></b>(</td><td><var>directory</var>)</td></tr></table></dt><dd>Refreshes the ArcGIS catalog's cached view of the specified directory.</dd></dl><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"><td style="white-space: nowrap;"><b><tt class="method"><a href="Method_GeoEco.ArcGIS.GeoprocessorManager.SetGeoprocessor.html?format=raw">SetGeoprocessor</a></tt></b>(</td><td><var>geoprocessor</var>)</td></tr></table></dt><dd>Sets the value of the Geoprocessor property.</dd></dl><div class="navigation"><div class="online-navigation"><p></p><hr /><table align="center" width="100%" cellpadding="0" cellspacing="2"><tr><td class="online-navigation"><a title="GeoEco.ArcGIS Module" href="Module_GeoEco.ArcGIS.html?format=raw"><img src="previous.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Previous Page" /></a></td><td class="online-navigation"><a title="Module Index" href="Module_GeoEco.ArcGIS.html?format=raw"><img src="up.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Up one Level" /></a></td><td class="online-navigation"><a title="Geoprocessor Property" href="Property_GeoEco.ArcGIS.GeoprocessorManager.Geoprocessor.html?format=raw"><img src="next.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Next Page" /></a></td><td align="center" width="100%">GeoEco Python Reference</td><td class="online-navigation"><a title="Table of Contents" href="TableOfContents.html?format=raw"><img src="contents.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Table of Contents" /></a></td><td class="online-navigation"><a title="Module Index" href="ModuleIndex.html?format=raw"><img src="modules.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Module Index" /></a></td><td class="online-navigation"><img src="blank.png?format=raw" border="0" align="bottom" height="32" width="32" alt="" /></td></tr></table><div class="online-navigation"><b class="navlabel">Previous:</b> <a class="sectref" href="Module_GeoEco.ArcGIS.html?format=raw">GeoEco.ArcGIS Module</a> <b class="navlabel">Up:</b> <a class="sectref" href="Module_GeoEco.ArcGIS.html?format=raw">Module Index</a> <b class="navlabel">Next:</b> <a class="sectref" href="Property_GeoEco.ArcGIS.GeoprocessorManager.Geoprocessor.html?format=raw">Geoprocessor Property</a> </div></div></div></body></html> 
     6          </style></head><body><div class="navigation"><div><table align="center" width="100%" cellpadding="0" cellspacing="2"><tr><td class="online-navigation"><a title="GeoEco.ArcGIS Module" href="Module_GeoEco.ArcGIS.html?format=raw"><img src="previous.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Previous Page" /></a></td><td class="online-navigation"><a title="Module Index" href="Module_GeoEco.ArcGIS.html?format=raw"><img src="up.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Up one Level" /></a></td><td class="online-navigation"><a title="Geoprocessor Property" href="Property_GeoEco.ArcGIS.GeoprocessorManager.Geoprocessor.html?format=raw"><img src="next.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Next Page" /></a></td><td align="center" width="100%">GeoEco Python Reference</td><td class="online-navigation"><a title="Table of Contents" href="TableOfContents.html?format=raw"><img src="contents.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Table of Contents" /></a></td><td class="online-navigation"><a title="Module Index" href="ModuleIndex.html?format=raw"><img src="modules.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Module Index" /></a></td><td class="online-navigation"><img src="blank.png?format=raw" border="0" align="bottom" height="32" width="32" alt="" /></td></tr></table><div class="online-navigation"><b class="navlabel">Previous:</b> <a class="sectref" href="Module_GeoEco.ArcGIS.html?format=raw">GeoEco.ArcGIS Module</a> <b class="navlabel">Up:</b> <a class="sectref" href="Module_GeoEco.ArcGIS.html?format=raw">Module Index</a> <b class="navlabel">Next:</b> <a class="sectref" href="Property_GeoEco.ArcGIS.GeoprocessorManager.Geoprocessor.html?format=raw">Geoprocessor Property</a> </div><hr /></div></div><h1><tt class="class">GeoprocessorManager</tt> Class</h1><p>Manages the instance of the ArcGIS geoprocessor object used whenever any GeoEco function needs to invoke ArcGIS tools.</p><table cellpadding="0" cellspacing="0"><tr valign="baseline"><td class="metadataTitle">Module:</td><td class="metadataValue"><tt class="module"><a href="Module_GeoEco.ArcGIS.html?format=raw">GeoEco.ArcGIS</a></tt></td></tr><tr valign="baseline"><td class="metadataTitle">Intended use:</td><td class="metadataValue">Some methods are intended for GeoEco internal use only and are not recommended for external callers</td></tr><tr valign="baseline"><td class="metadataTitle">COM:</td><td class="metadataValue">Exposed as COM class <a style="font-family: verdana, sans serif; font-size: small;" href="../COMReference/Class_GeoEco.GeoprocessorManager.html?format=raw">GeoEco.GeoprocessorManager</a></td></tr><tr valign="baseline"><td class="metadataTitle">ArcGIS:</td><td class="metadataValue">Not exposed to ArcGIS</td></tr></table><h3>Properties</h3><dl><dt><b><tt class="member"><a href="Property_GeoEco.ArcGIS.GeoprocessorManager.Geoprocessor.html?format=raw">Geoprocessor</a></tt></b></dt><dd>The ArcGIS geoprocessor object used whenever any GeoEco function needs to invoke ArcGIS tools.</dd></dl><h3>Read-only properties</h3><dl><dt><b><tt class="member"><a href="Property_GeoEco.ArcGIS.GeoprocessorManager.ArcGISMajorVersion.html?format=raw">ArcGISMajorVersion</a></tt></b></dt><dd>The major version number for ArcGIS, if it is installed on the machine.</dd></dl><dl><dt><b><tt class="member"><a href="Property_GeoEco.ArcGIS.GeoprocessorManager.ArcGISMinorVersion.html?format=raw">ArcGISMinorVersion</a></tt></b></dt><dd>The minor version number for ArcGIS, if it is installed on the machine.</dd></dl><dl><dt><b><tt class="member"><a href="Property_GeoEco.ArcGIS.GeoprocessorManager.ArcGISServicePack.html?format=raw">ArcGISServicePack</a></tt></b></dt><dd>The service pack number for ArcGIS, if it is installed on the machine.</dd></dl><dl><dt><b><tt class="member"><a href="Property_GeoEco.ArcGIS.GeoprocessorManager.GeoprocessorIsCOMObject.html?format=raw">GeoprocessorIsCOMObject</a></tt></b></dt><dd>True if the object returned by the Geoprocessor property is a COM Automation object. False if it is some other kind of object (such as the object returned by arcgisscripting.create()).</dd></dl><dl><dt><b><tt class="member"><a href="Property_GeoEco.ArcGIS.GeoprocessorManager.WrappedGeoprocessor.html?format=raw">WrappedGeoprocessor</a></tt></b></dt><dd>The Geoprocessor property, wrapped by a class that logs messages whenever the geoprocessor is accessed.</dd></dl><h3>Classmethods</h3><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"><td style="white-space: nowrap;"><b><tt class="method"><a href="Method_GeoEco.ArcGIS.GeoprocessorManager.GetArcGISMajorVersion.html?format=raw">GetArcGISMajorVersion</a></tt></b>(</td><td>)</td></tr></table></dt><dd>Returns the value of the ArcGISMajorVersion property.</dd></dl><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"><td style="white-space: nowrap;"><b><tt class="method"><a href="Method_GeoEco.ArcGIS.GeoprocessorManager.GetArcGISMinorVersion.html?format=raw">GetArcGISMinorVersion</a></tt></b>(</td><td>)</td></tr></table></dt><dd>Returns the value of the ArcGISMinorVersion property.</dd></dl><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"><td style="white-space: nowrap;"><b><tt class="method"><a href="Method_GeoEco.ArcGIS.GeoprocessorManager.GetArcGISServicePack.html?format=raw">GetArcGISServicePack</a></tt></b>(</td><td>)</td></tr></table></dt><dd>Returns the value of the ArcGISServicePack property.</dd></dl><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"><td style="white-space: nowrap;"><b><tt class="method"><a href="Method_GeoEco.ArcGIS.GeoprocessorManager.GetGeoprocessor.html?format=raw">GetGeoprocessor</a></tt></b>(</td><td>)</td></tr></table></dt><dd>Returns the value of the Geoprocessor property.</dd></dl><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"><td style="white-space: nowrap;"><b><tt class="method"><a href="Method_GeoEco.ArcGIS.GeoprocessorManager.GetWrappedGeoprocessor.html?format=raw">GetWrappedGeoprocessor</a></tt></b>(</td><td>)</td></tr></table></dt><dd>Returns the value of the WrappedGeoprocessor property.</dd></dl><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"><td style="white-space: nowrap;"><b><tt class="method"><a href="Method_GeoEco.ArcGIS.GeoprocessorManager.InitializeGeoprocessor.html?format=raw">InitializeGeoprocessor</a></tt></b>(</td><td>)</td></tr></table></dt><dd>Initializes the Geoprocessor property with a new ArcGIS geoprocessor object.</dd></dl><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"><td style="white-space: nowrap;"><b><tt class="method"><a href="Method_GeoEco.ArcGIS.GeoprocessorManager.InitializeGeoprocessorForDependency.html?format=raw">InitializeGeoprocessorForDependency</a></tt></b>(</td><td><big>[</big><var>dependency</var><big>]</big><var></var>)</td></tr></table></dt><dd>Initializes the Geoprocessor property with a new ArcGIS geoprocessor object on behalf of the specified dependency declared by a GeoEco class method.</dd></dl><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"><td style="white-space: nowrap;"><b><tt class="method"><a href="Method_GeoEco.ArcGIS.GeoprocessorManager.RefreshCatalog.html?format=raw">RefreshCatalog</a></tt></b>(</td><td><var>directory</var>)</td></tr></table></dt><dd>Refreshes the ArcGIS catalog's cached view of the specified directory.</dd></dl><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"><td style="white-space: nowrap;"><b><tt class="method"><a href="Method_GeoEco.ArcGIS.GeoprocessorManager.SetGeoprocessor.html?format=raw">SetGeoprocessor</a></tt></b>(</td><td><var>geoprocessor</var>)</td></tr></table></dt><dd>Sets the value of the Geoprocessor property.</dd></dl><div class="navigation"><div class="online-navigation"><p></p><hr /><table align="center" width="100%" cellpadding="0" cellspacing="2"><tr><td class="online-navigation"><a title="GeoEco.ArcGIS Module" href="Module_GeoEco.ArcGIS.html?format=raw"><img src="previous.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Previous Page" /></a></td><td class="online-navigation"><a title="Module Index" href="Module_GeoEco.ArcGIS.html?format=raw"><img src="up.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Up one Level" /></a></td><td class="online-navigation"><a title="Geoprocessor Property" href="Property_GeoEco.ArcGIS.GeoprocessorManager.Geoprocessor.html?format=raw"><img src="next.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Next Page" /></a></td><td align="center" width="100%">GeoEco Python Reference</td><td class="online-navigation"><a title="Table of Contents" href="TableOfContents.html?format=raw"><img src="contents.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Table of Contents" /></a></td><td class="online-navigation"><a title="Module Index" href="ModuleIndex.html?format=raw"><img src="modules.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Module Index" /></a></td><td class="online-navigation"><img src="blank.png?format=raw" border="0" align="bottom" height="32" width="32" alt="" /></td></tr></table><div class="online-navigation"><b class="navlabel">Previous:</b> <a class="sectref" href="Module_GeoEco.ArcGIS.html?format=raw">GeoEco.ArcGIS Module</a> <b class="navlabel">Up:</b> <a class="sectref" href="Module_GeoEco.ArcGIS.html?format=raw">Module Index</a> <b class="navlabel">Next:</b> <a class="sectref" href="Property_GeoEco.ArcGIS.GeoprocessorManager.Geoprocessor.html?format=raw">Geoprocessor Property</a> </div></div></div></body></html> 
  • MGET/Trunk/PythonPackage/dist/TracOnlineDocumentation/Documentation/PythonReference/Method_GeoEco.ArcGIS.GeoprocessorManager.InitializeGeoprocessor.html

    r61 r69  
    99ArcGIS and then call SetGeoprocessor().</p><p>If the Geoprocessor property is not empty, this method returns without doing 
    1010anything. If it is empty, this method attempts to obtain a geoprocessor object 
    11 using the following procedure:</p><ul><li>Import the arcgisscripting Python package and invoke the create method. This 
     11using the following procedure:</p><ul><li>Import the arcgisscripting Python module and invoke the create method. This 
    1212will succeed if ArcGIS 9.2 or later is installed on the machine. If this 
    13 succeeds, the returned object is an unknown type. (Note: because I have not 
    14 tried ArcGIS 9.2 yet, I don't know what kind of object is returned. If it is 
    15 not an IDispatch interface, then it cannot be returned to COM callers. If you 
    16 are calling InitializeGeoprocessor using COM, I am not sure what will happen. 
    17 I will investigate this as soon as I can install ArcGIS 9.2.)</li><li>If the step above fails, create the "esriGeoprocessing.GPDispatch" COM object 
    18 using the Dispatch function provided by the win32com.client Python package. 
    19 If this succeeds, the returned object is the COM IDispatch interface for the 
    20 geoprocessor object.</li></ul><div class="navigation"><div class="online-navigation"><p></p><hr /><table align="center" width="100%" cellpadding="0" cellspacing="2"><tr><td class="online-navigation"><a title="GetWrappedGeoprocessor Method" href="Method_GeoEco.ArcGIS.GeoprocessorManager.GetWrappedGeoprocessor.html?format=raw"><img src="previous.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Previous Page" /></a></td><td class="online-navigation"><a title="GeoprocessorManager Class" href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw"><img src="up.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Up one Level" /></a></td><td class="online-navigation"><a title="InitializeGeoprocessorForDependency Method" href="Method_GeoEco.ArcGIS.GeoprocessorManager.InitializeGeoprocessorForDependency.html?format=raw"><img src="next.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Next Page" /></a></td><td align="center" width="100%">GeoEco Python Reference</td><td class="online-navigation"><a title="Table of Contents" href="TableOfContents.html?format=raw"><img src="contents.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Table of Contents" /></a></td><td class="online-navigation"><a title="Module Index" href="ModuleIndex.html?format=raw"><img src="modules.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Module Index" /></a></td><td class="online-navigation"><img src="blank.png?format=raw" border="0" align="bottom" height="32" width="32" alt="" /></td></tr></table><div class="online-navigation"><b class="navlabel">Previous:</b> <a class="sectref" href="Method_GeoEco.ArcGIS.GeoprocessorManager.GetWrappedGeoprocessor.html?format=raw">GetWrappedGeoprocessor Method</a> <b class="navlabel">Up:</b> <a class="sectref" href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw">GeoprocessorManager Class</a> <b class="navlabel">Next:</b> <a class="sectref" href="Method_GeoEco.ArcGIS.GeoprocessorManager.InitializeGeoprocessorForDependency.html?format=raw">InitializeGeoprocessorForDependency Method</a> </div></div></div></body></html> 
     13succeeds, the returned object is a custom type that has attributes but is not 
     14a class or class instance.</li><li>If the step above fails, create the "esriGeoprocessing.GPDispatch" COM 
     15Automation object using the Dispatch function provided by the win32com.client 
     16Python module. If this succeeds, the returned object is an instance of the 
     17win32com.client.CDispatch class.</li></ul><div class="navigation"><div class="online-navigation"><p></p><hr /><table align="center" width="100%" cellpadding="0" cellspacing="2"><tr><td class="online-navigation"><a title="GetWrappedGeoprocessor Method" href="Method_GeoEco.ArcGIS.GeoprocessorManager.GetWrappedGeoprocessor.html?format=raw"><img src="previous.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Previous Page" /></a></td><td class="online-navigation"><a title="GeoprocessorManager Class" href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw"><img src="up.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Up one Level" /></a></td><td class="online-navigation"><a title="InitializeGeoprocessorForDependency Method" href="Method_GeoEco.ArcGIS.GeoprocessorManager.InitializeGeoprocessorForDependency.html?format=raw"><img src="next.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Next Page" /></a></td><td align="center" width="100%">GeoEco Python Reference</td><td class="online-navigation"><a title="Table of Contents" href="TableOfContents.html?format=raw"><img src="contents.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Table of Contents" /></a></td><td class="online-navigation"><a title="Module Index" href="ModuleIndex.html?format=raw"><img src="modules.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Module Index" /></a></td><td class="online-navigation"><img src="blank.png?format=raw" border="0" align="bottom" height="32" width="32" alt="" /></td></tr></table><div class="online-navigation"><b class="navlabel">Previous:</b> <a class="sectref" href="Method_GeoEco.ArcGIS.GeoprocessorManager.GetWrappedGeoprocessor.html?format=raw">GetWrappedGeoprocessor Method</a> <b class="navlabel">Up:</b> <a class="sectref" href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw">GeoprocessorManager Class</a> <b class="navlabel">Next:</b> <a class="sectref" href="Method_GeoEco.ArcGIS.GeoprocessorManager.InitializeGeoprocessorForDependency.html?format=raw">InitializeGeoprocessorForDependency Method</a> </div></div></div></body></html> 
  • MGET/Trunk/PythonPackage/dist/TracOnlineDocumentation/Documentation/PythonReference/Method_GeoEco.ArcGIS.GeoprocessorManager.SetGeoprocessor.html

    r61 r69  
    44            td.metadataTitle { font-size: 80%; font-weight: bold; font-family: avantgarde, sans-serif; } 
    55            td.metadataValue { padding-left: 0.5em; } 
    6           </style></head><body><div class="navigation"><div><table align="center" width="100%" cellpadding="0" cellspacing="2"><tr><td class="online-navigation"><a title="RefreshCatalog Method" href="Method_GeoEco.ArcGIS.GeoprocessorManager.RefreshCatalog.html?format=raw"><img src="previous.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Previous Page" /></a></td><td class="online-navigation"><a title="GeoprocessorManager Class" href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw"><img src="up.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Up one Level" /></a></td><td class="online-navigation"><a title="GeoEco.COM Module" href="Module_GeoEco.COM.html?format=raw"><img src="next.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Next Page" /></a></td><td align="center" width="100%">GeoEco Python Reference</td><td class="online-navigation"><a title="Table of Contents" href="TableOfContents.html?format=raw"><img src="contents.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Table of Contents" /></a></td><td class="online-navigation"><a title="Module Index" href="ModuleIndex.html?format=raw"><img src="modules.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Module Index" /></a></td><td class="online-navigation"><img src="blank.png?format=raw" border="0" align="bottom" height="32" width="32" alt="" /></td></tr></table><div class="online-navigation"><b class="navlabel">Previous:</b> <a class="sectref" href="Method_GeoEco.ArcGIS.GeoprocessorManager.RefreshCatalog.html?format=raw">RefreshCatalog Method</a> <b class="navlabel">Up:</b> <a class="sectref" href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw">GeoprocessorManager Class</a> <b class="navlabel">Next:</b> <a class="sectref" href="Module_GeoEco.COM.html?format=raw">GeoEco.COM Module</a> </div><hr /></div></div><h1><tt class="member">SetGeoprocessor</tt> Method</h1><p>Sets the value of the Geoprocessor property.</p><table cellpadding="0" cellspacing="0"><tr valign="baseline"><td class="metadataTitle">Class:</td><td class="metadataValue"><tt class="class"><a href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw">GeoprocessorManager</a></tt></td></tr><tr valign="baseline"><td class="metadataTitle">Intended use:</td><td class="metadataValue">Recommended for external callers</td></tr><tr valign="baseline"><td class="metadataTitle">COM:</td><td class="metadataValue">Not exposed by a COM class</td></tr><tr valign="baseline"><td class="metadataTitle">ArcGIS:</td><td class="metadataValue">Not exposed as an ArcGIS geoprocessing tool</td></tr><tr valign="baseline"><td class="metadataTitle">Method type:</td><td class="metadataValue">Classmethod</td></tr></table><h3>Usage</h3><table cellpadding="0" cellspacing="0"><tr valign="baseline"><td style="white-space: nowrap;"><b><tt class="method">GeoprocessorManager.SetGeoprocessor</tt></b>(</td><td><var>geoprocessor</var>)</td></tr></table><h3>Arguments</h3><dl><dt><var>geoprocessor</var></dt><dd><table cellpadding="0" cellspacing="0" style="margin-top: 1.0em;"><tr valign="baseline"><td class="metadataTitle">Python type:</td><td class="metadataValue"><tt class="class">object</tt></td></tr></table><p>The ArcGIS geoprocessor object obtained from COM or the arcgisscripting Python module. See the documentation for the Geoprocessor property for more information.</p></dd></dl><div class="navigation"><div class="online-navigation"><p></p><hr /><table align="center" width="100%" cellpadding="0" cellspacing="2"><tr><td class="online-navigation"><a title="RefreshCatalog Method" href="Method_GeoEco.ArcGIS.GeoprocessorManager.RefreshCatalog.html?format=raw"><img src="previous.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Previous Page" /></a></td><td class="online-navigation"><a title="GeoprocessorManager Class" href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw"><img src="up.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Up one Level" /></a></td><td class="online-navigation"><a title="GeoEco.COM Module" href="Module_GeoEco.COM.html?format=raw"><img src="next.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Next Page" /></a></td><td align="center" width="100%">GeoEco Python Reference</td><td class="online-navigation"><a title="Table of Contents" href="TableOfContents.html?format=raw"><img src="contents.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Table of Contents" /></a></td><td class="online-navigation"><a title="Module Index" href="ModuleIndex.html?format=raw"><img src="modules.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Module Index" /></a></td><td class="online-navigation"><img src="blank.png?format=raw" border="0" align="bottom" height="32" width="32" alt="" /></td></tr></table><div class="online-navigation"><b class="navlabel">Previous:</b> <a class="sectref" href="Method_GeoEco.ArcGIS.GeoprocessorManager.RefreshCatalog.html?format=raw">RefreshCatalog Method</a> <b class="navlabel">Up:</b> <a class="sectref" href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw">GeoprocessorManager Class</a> <b class="navlabel">Next:</b> <a class="sectref" href="Module_GeoEco.COM.html?format=raw">GeoEco.COM Module</a> </div></div></div></body></html> 
     6          </style></head><body><div class="navigation"><div><table align="center" width="100%" cellpadding="0" cellspacing="2"><tr><td class="online-navigation"><a title="RefreshCatalog Method" href="Method_GeoEco.ArcGIS.GeoprocessorManager.RefreshCatalog.html?format=raw"><img src="previous.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Previous Page" /></a></td><td class="online-navigation"><a title="GeoprocessorManager Class" href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw"><img src="up.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Up one Level" /></a></td><td class="online-navigation"><a title="GeoEco.COM Module" href="Module_GeoEco.COM.html?format=raw"><img src="next.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Next Page" /></a></td><td align="center" width="100%">GeoEco Python Reference</td><td class="online-navigation"><a title="Table of Contents" href="TableOfContents.html?format=raw"><img src="contents.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Table of Contents" /></a></td><td class="online-navigation"><a title="Module Index" href="ModuleIndex.html?format=raw"><img src="modules.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Module Index" /></a></td><td class="online-navigation"><img src="blank.png?format=raw" border="0" align="bottom" height="32" width="32" alt="" /></td></tr></table><div class="online-navigation"><b class="navlabel">Previous:</b> <a class="sectref" href="Method_GeoEco.ArcGIS.GeoprocessorManager.RefreshCatalog.html?format=raw">RefreshCatalog Method</a> <b class="navlabel">Up:</b> <a class="sectref" href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw">GeoprocessorManager Class</a> <b class="navlabel">Next:</b> <a class="sectref" href="Module_GeoEco.COM.html?format=raw">GeoEco.COM Module</a> </div><hr /></div></div><h1><tt class="member">SetGeoprocessor</tt> Method</h1><p>Sets the value of the Geoprocessor property.</p><table cellpadding="0" cellspacing="0"><tr valign="baseline"><td class="metadataTitle">Class:</td><td class="metadataValue"><tt class="class"><a href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw">GeoprocessorManager</a></tt></td></tr><tr valign="baseline"><td class="metadataTitle">Intended use:</td><td class="metadataValue">Recommended for external callers</td></tr><tr valign="baseline"><td class="metadataTitle">COM:</td><td class="metadataValue">Not exposed by a COM class</td></tr><tr valign="baseline"><td class="metadataTitle">ArcGIS:</td><td class="metadataValue">Not exposed as an ArcGIS geoprocessing tool</td></tr><tr valign="baseline"><td class="metadataTitle">Method type:</td><td class="metadataValue">Classmethod</td></tr></table><h3>Usage</h3><table cellpadding="0" cellspacing="0"><tr valign="baseline"><td style="white-space: nowrap;"><b><tt class="method">GeoprocessorManager.SetGeoprocessor</tt></b>(</td><td><var>geoprocessor</var>)</td></tr></table><h3>Arguments</h3><dl><dt><var>geoprocessor</var></dt><dd><table cellpadding="0" cellspacing="0" style="margin-top: 1.0em;"><tr valign="baseline"><td class="metadataTitle">Python type:</td><td class="metadataValue"><tt class="class">object</tt></td></tr></table><p>The ArcGIS geoprocessor object obtained from COM Automation or the arcgisscripting Python module. See the documentation for the Geoprocessor property for more information.</p></dd></dl><div class="navigation"><div class="online-navigation"><p></p><hr /><table align="center" width="100%" cellpadding="0" cellspacing="2"><tr><td class="online-navigation"><a title="RefreshCatalog Method" href="Method_GeoEco.ArcGIS.GeoprocessorManager.RefreshCatalog.html?format=raw"><img src="previous.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Previous Page" /></a></td><td class="online-navigation"><a title="GeoprocessorManager Class" href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw"><img src="up.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Up one Level" /></a></td><td class="online-navigation"><a title="GeoEco.COM Module" href="Module_GeoEco.COM.html?format=raw"><img src="next.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Next Page" /></a></td><td align="center" width="100%">GeoEco Python Reference</td><td class="online-navigation"><a title="Table of Contents" href="TableOfContents.html?format=raw"><img src="contents.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Table of Contents" /></a></td><td class="online-navigation"><a title="Module Index" href="ModuleIndex.html?format=raw"><img src="modules.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Module Index" /></a></td><td class="online-navigation"><img src="blank.png?format=raw" border="0" align="bottom" height="32" width="32" alt="" /></td></tr></table><div class="online-navigation"><b class="navlabel">Previous:</b> <a class="sectref" href="Method_GeoEco.ArcGIS.GeoprocessorManager.RefreshCatalog.html?format=raw">RefreshCatalog Method</a> <b class="navlabel">Up:</b> <a class="sectref" href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw">GeoprocessorManager Class</a> <b class="navlabel">Next:</b> <a class="sectref" href="Module_GeoEco.COM.html?format=raw">GeoEco.COM Module</a> </div></div></div></body></html> 
  • MGET/Trunk/PythonPackage/dist/TracOnlineDocumentation/Documentation/PythonReference/Property_GeoEco.ArcGIS.GeoprocessorManager.ArcGISServicePack.html

    r61 r69  
    44            td.metadataTitle { font-size: 80%; font-weight: bold; font-family: avantgarde, sans-serif; } 
    55            td.metadataValue { padding-left: 0.5em; } 
    6           </style></head><body><div class="navigation"><div><table align="center" width="100%" cellpadding="0" cellspacing="2"><tr><td class="online-navigation"><a title="ArcGISMinorVersion Property" href="Property_GeoEco.ArcGIS.GeoprocessorManager.ArcGISMinorVersion.html?format=raw"><img src="previous.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Previous Page" /></a></td><td class="online-navigation"><a title="GeoprocessorManager Class" href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw"><img src="up.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Up one Level" /></a></td><td class="online-navigation"><a title="WrappedGeoprocessor Property" href="Property_GeoEco.ArcGIS.GeoprocessorManager.WrappedGeoprocessor.html?format=raw"><img src="next.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Next Page" /></a></td><td align="center" width="100%">GeoEco Python Reference</td><td class="online-navigation"><a title="Table of Contents" href="TableOfContents.html?format=raw"><img src="contents.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Table of Contents" /></a></td><td class="online-navigation"><a title="Module Index" href="ModuleIndex.html?format=raw"><img src="modules.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Module Index" /></a></td><td class="online-navigation"><img src="blank.png?format=raw" border="0" align="bottom" height="32" width="32" alt="" /></td></tr></table><div class="online-navigation"><b class="navlabel">Previous:</b> <a class="sectref" href="Property_GeoEco.ArcGIS.GeoprocessorManager.ArcGISMinorVersion.html?format=raw">ArcGISMinorVersion Property</a> <b class="navlabel">Up:</b> <a class="sectref" href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw">GeoprocessorManager Class</a> <b class="navlabel">Next:</b> <a class="sectref" href="Property_GeoEco.ArcGIS.GeoprocessorManager.WrappedGeoprocessor.html?format=raw">WrappedGeoprocessor Property</a> </div><hr /></div></div><h1><tt class="member">ArcGISServicePack</tt> Property</h1><p>The service pack number for ArcGIS, if it is installed on the machine.</p><table cellpadding="0" cellspacing="0"><tr valign="baseline"><td class="metadataTitle">Class:</td><td class="metadataValue"><tt class="class"><a href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw">GeoprocessorManager</a></tt></td></tr><tr valign="baseline"><td class="metadataTitle">Intended use:</td><td class="metadataValue">Recommended for external callers</td></tr><tr valign="baseline"><td class="metadataTitle">COM:</td><td class="metadataValue">Exposed as the <a style="font-family: verdana, sans serif; font-size: small;" href="../COMReference/Property_GeoEco.GeoprocessorManager.ArcGISServicePack.html?format=raw">ArcGISServicePack</a> property of COM class <a style="font-family: verdana, sans serif; font-size: small;" href="../COMReference/Class_GeoEco.GeoprocessorManager.html?format=raw">GeoEco.GeoprocessorManager</a></td></tr><tr valign="baseline"><td class="metadataTitle">Read-only:</td><td class="metadataValue">Yes</td></tr><tr valign="baseline"><td class="metadataTitle">Python type:</td><td class="metadataValue"><tt class="class">int</tt> or <tt class="class">None</tt></td></tr></table><h3>Remarks</h3><p>This property is empty if ArcGIS is not installed on the machine.</p><div class="navigation"><div class="online-navigation"><p></p><hr /><table align="center" width="100%" cellpadding="0" cellspacing="2"><tr><td class="online-navigation"><a title="ArcGISMinorVersion Property" href="Property_GeoEco.ArcGIS.GeoprocessorManager.ArcGISMinorVersion.html?format=raw"><img src="previous.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Previous Page" /></a></td><td class="online-navigation"><a title="GeoprocessorManager Class" href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw"><img src="up.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Up one Level" /></a></td><td class="online-navigation"><a title="WrappedGeoprocessor Property" href="Property_GeoEco.ArcGIS.GeoprocessorManager.WrappedGeoprocessor.html?format=raw"><img src="next.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Next Page" /></a></td><td align="center" width="100%">GeoEco Python Reference</td><td class="online-navigation"><a title="Table of Contents" href="TableOfContents.html?format=raw"><img src="contents.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Table of Contents" /></a></td><td class="online-navigation"><a title="Module Index" href="ModuleIndex.html?format=raw"><img src="modules.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Module Index" /></a></td><td class="online-navigation"><img src="blank.png?format=raw" border="0" align="bottom" height="32" width="32" alt="" /></td></tr></table><div class="online-navigation"><b class="navlabel">Previous:</b> <a class="sectref" href="Property_GeoEco.ArcGIS.GeoprocessorManager.ArcGISMinorVersion.html?format=raw">ArcGISMinorVersion Property</a> <b class="navlabel">Up:</b> <a class="sectref" href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw">GeoprocessorManager Class</a> <b class="navlabel">Next:</b> <a class="sectref" href="Property_GeoEco.ArcGIS.GeoprocessorManager.WrappedGeoprocessor.html?format=raw">WrappedGeoprocessor Property</a> </div></div></div></body></html> 
     6          </style></head><body><div class="navigation"><div><table align="center" width="100%" cellpadding="0" cellspacing="2"><tr><td class="online-navigation"><a title="ArcGISMinorVersion Property" href="Property_GeoEco.ArcGIS.GeoprocessorManager.ArcGISMinorVersion.html?format=raw"><img src="previous.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Previous Page" /></a></td><td class="online-navigation"><a title="GeoprocessorManager Class" href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw"><img src="up.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Up one Level" /></a></td><td class="online-navigation"><a title="GeoprocessorIsCOMObject Property" href="Property_GeoEco.ArcGIS.GeoprocessorManager.GeoprocessorIsCOMObject.html?format=raw"><img src="next.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Next Page" /></a></td><td align="center" width="100%">GeoEco Python Reference</td><td class="online-navigation"><a title="Table of Contents" href="TableOfContents.html?format=raw"><img src="contents.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Table of Contents" /></a></td><td class="online-navigation"><a title="Module Index" href="ModuleIndex.html?format=raw"><img src="modules.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Module Index" /></a></td><td class="online-navigation"><img src="blank.png?format=raw" border="0" align="bottom" height="32" width="32" alt="" /></td></tr></table><div class="online-navigation"><b class="navlabel">Previous:</b> <a class="sectref" href="Property_GeoEco.ArcGIS.GeoprocessorManager.ArcGISMinorVersion.html?format=raw">ArcGISMinorVersion Property</a> <b class="navlabel">Up:</b> <a class="sectref" href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw">GeoprocessorManager Class</a> <b class="navlabel">Next:</b> <a class="sectref" href="Property_GeoEco.ArcGIS.GeoprocessorManager.GeoprocessorIsCOMObject.html?format=raw">GeoprocessorIsCOMObject Property</a> </div><hr /></div></div><h1><tt class="member">ArcGISServicePack</tt> Property</h1><p>The service pack number for ArcGIS, if it is installed on the machine.</p><table cellpadding="0" cellspacing="0"><tr valign="baseline"><td class="metadataTitle">Class:</td><td class="metadataValue"><tt class="class"><a href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw">GeoprocessorManager</a></tt></td></tr><tr valign="baseline"><td class="metadataTitle">Intended use:</td><td class="metadataValue">Recommended for external callers</td></tr><tr valign="baseline"><td class="metadataTitle">COM:</td><td class="metadataValue">Exposed as the <a style="font-family: verdana, sans serif; font-size: small;" href="../COMReference/Property_GeoEco.GeoprocessorManager.ArcGISServicePack.html?format=raw">ArcGISServicePack</a> property of COM class <a style="font-family: verdana, sans serif; font-size: small;" href="../COMReference/Class_GeoEco.GeoprocessorManager.html?format=raw">GeoEco.GeoprocessorManager</a></td></tr><tr valign="baseline"><td class="metadataTitle">Read-only:</td><td class="metadataValue">Yes</td></tr><tr valign="baseline"><td class="metadataTitle">Python type:</td><td class="metadataValue"><tt class="class">int</tt> or <tt class="class">None</tt></td></tr></table><h3>Remarks</h3><p>This property is empty if ArcGIS is not installed on the machine.</p><div class="navigation"><div class="online-navigation"><p></p><hr /><table align="center" width="100%" cellpadding="0" cellspacing="2"><tr><td class="online-navigation"><a title="ArcGISMinorVersion Property" href="Property_GeoEco.ArcGIS.GeoprocessorManager.ArcGISMinorVersion.html?format=raw"><img src="previous.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Previous Page" /></a></td><td class="online-navigation"><a title="GeoprocessorManager Class" href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw"><img src="up.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Up one Level" /></a></td><td class="online-navigation"><a title="GeoprocessorIsCOMObject Property" href="Property_GeoEco.ArcGIS.GeoprocessorManager.GeoprocessorIsCOMObject.html?format=raw"><img src="next.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Next Page" /></a></td><td align="center" width="100%">GeoEco Python Reference</td><td class="online-navigation"><a title="Table of Contents" href="TableOfContents.html?format=raw"><img src="contents.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Table of Contents" /></a></td><td class="online-navigation"><a title="Module Index" href="ModuleIndex.html?format=raw"><img src="modules.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Module Index" /></a></td><td class="online-navigation"><img src="blank.png?format=raw" border="0" align="bottom" height="32" width="32" alt="" /></td></tr></table><div class="online-navigation"><b class="navlabel">Previous:</b> <a class="sectref" href="Property_GeoEco.ArcGIS.GeoprocessorManager.ArcGISMinorVersion.html?format=raw">ArcGISMinorVersion Property</a> <b class="navlabel">Up:</b> <a class="sectref" href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw">GeoprocessorManager Class</a> <b class="navlabel">Next:</b> <a class="sectref" href="Property_GeoEco.ArcGIS.GeoprocessorManager.GeoprocessorIsCOMObject.html?format=raw">GeoprocessorIsCOMObject Property</a> </div></div></div></body></html> 
  • MGET/Trunk/PythonPackage/dist/TracOnlineDocumentation/Documentation/PythonReference/Property_GeoEco.ArcGIS.GeoprocessorManager.WrappedGeoprocessor.html

    r61 r69  
    44            td.metadataTitle { font-size: 80%; font-weight: bold; font-family: avantgarde, sans-serif; } 
    55            td.metadataValue { padding-left: 0.5em; } 
    6           </style></head><body><div class="navigation"><div><table align="center" width="100%" cellpadding="0" cellspacing="2"><tr><td class="online-navigation"><a title="ArcGISServicePack Property" href="Property_GeoEco.ArcGIS.GeoprocessorManager.ArcGISServicePack.html?format=raw"><img src="previous.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Previous Page" /></a></td><td class="online-navigation"><a title="GeoprocessorManager Class" href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw"><img src="up.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Up one Level" /></a></td><td class="online-navigation"><a title="GetArcGISMajorVersion Method" href="Method_GeoEco.ArcGIS.GeoprocessorManager.GetArcGISMajorVersion.html?format=raw"><img src="next.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Next Page" /></a></td><td align="center" width="100%">GeoEco Python Reference</td><td class="online-navigation"><a title="Table of Contents" href="TableOfContents.html?format=raw"><img src="contents.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Table of Contents" /></a></td><td class="online-navigation"><a title="Module Index" href="ModuleIndex.html?format=raw"><img src="modules.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Module Index" /></a></td><td class="online-navigation"><img src="blank.png?format=raw" border="0" align="bottom" height="32" width="32" alt="" /></td></tr></table><div class="online-navigation"><b class="navlabel">Previous:</b> <a class="sectref" href="Property_GeoEco.ArcGIS.GeoprocessorManager.ArcGISServicePack.html?format=raw">ArcGISServicePack Property</a> <b class="navlabel">Up:</b> <a class="sectref" href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw">GeoprocessorManager Class</a> <b class="navlabel">Next:</b> <a class="sectref" href="Method_GeoEco.ArcGIS.GeoprocessorManager.GetArcGISMajorVersion.html?format=raw">GetArcGISMajorVersion Method</a> </div><hr /></div></div><h1><tt class="member">WrappedGeoprocessor</tt> Property</h1><p>The Geoprocessor property, wrapped by a class that logs messages whenever the geoprocessor is accessed.</p><table cellpadding="0" cellspacing="0"><tr valign="baseline"><td class="metadataTitle">Class:</td><td class="metadataValue"><tt class="class"><a href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw">GeoprocessorManager</a></tt></td></tr><tr valign="baseline"><td class="metadataTitle">Intended use:</td><td class="metadataValue">Recommended for external callers</td></tr><tr valign="baseline"><td class="metadataTitle">COM:</td><td class="metadataValue">Exposed as the <a style="font-family: verdana, sans serif; font-size: small;" href="../COMReference/Property_GeoEco.GeoprocessorManager.WrappedGeoprocessor.html?format=raw">WrappedGeoprocessor</a> property of COM class <a style="font-family: verdana, sans serif; font-size: small;" href="../COMReference/Class_GeoEco.GeoprocessorManager.html?format=raw">GeoEco.GeoprocessorManager</a></td></tr><tr valign="baseline"><td class="metadataTitle">Read-only:</td><td class="metadataValue">Yes</td></tr><tr valign="baseline"><td class="metadataTitle">Python type:</td><td class="metadataValue"><tt class="class">object</tt> or <tt class="class">None</tt></td></tr></table><h3>Remarks</h3><p>This property is a singleton; all Python modules running in the same 
     6          </style></head><body><div class="navigation"><div><table align="center" width="100%" cellpadding="0" cellspacing="2"><tr><td class="online-navigation"><a title="GeoprocessorIsCOMObject Property" href="Property_GeoEco.ArcGIS.GeoprocessorManager.GeoprocessorIsCOMObject.html?format=raw"><img src="previous.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Previous Page" /></a></td><td class="online-navigation"><a title="GeoprocessorManager Class" href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw"><img src="up.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Up one Level" /></a></td><td class="online-navigation"><a title="GetArcGISMajorVersion Method" href="Method_GeoEco.ArcGIS.GeoprocessorManager.GetArcGISMajorVersion.html?format=raw"><img src="next.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Next Page" /></a></td><td align="center" width="100%">GeoEco Python Reference</td><td class="online-navigation"><a title="Table of Contents" href="TableOfContents.html?format=raw"><img src="contents.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Table of Contents" /></a></td><td class="online-navigation"><a title="Module Index" href="ModuleIndex.html?format=raw"><img src="modules.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Module Index" /></a></td><td class="online-navigation"><img src="blank.png?format=raw" border="0" align="bottom" height="32" width="32" alt="" /></td></tr></table><div class="online-navigation"><b class="navlabel">Previous:</b> <a class="sectref" href="Property_GeoEco.ArcGIS.GeoprocessorManager.GeoprocessorIsCOMObject.html?format=raw">GeoprocessorIsCOMObject Property</a> <b class="navlabel">Up:</b> <a class="sectref" href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw">GeoprocessorManager Class</a> <b class="navlabel">Next:</b> <a class="sectref" href="Method_GeoEco.ArcGIS.GeoprocessorManager.GetArcGISMajorVersion.html?format=raw">GetArcGISMajorVersion Method</a> </div><hr /></div></div><h1><tt class="member">WrappedGeoprocessor</tt> Property</h1><p>The Geoprocessor property, wrapped by a class that logs messages whenever the geoprocessor is accessed.</p><table cellpadding="0" cellspacing="0"><tr valign="baseline"><td class="metadataTitle">Class:</td><td class="metadataValue"><tt class="class"><a href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw">GeoprocessorManager</a></tt></td></tr><tr valign="baseline"><td class="metadataTitle">Intended use:</td><td class="metadataValue">Recommended for external callers</td></tr><tr valign="baseline"><td class="metadataTitle">COM:</td><td class="metadataValue">Exposed as the <a style="font-family: verdana, sans serif; font-size: small;" href="../COMReference/Property_GeoEco.GeoprocessorManager.WrappedGeoprocessor.html?format=raw">WrappedGeoprocessor</a> property of COM class <a style="font-family: verdana, sans serif; font-size: small;" href="../COMReference/Class_GeoEco.GeoprocessorManager.html?format=raw">GeoEco.GeoprocessorManager</a></td></tr><tr valign="baseline"><td class="metadataTitle">Read-only:</td><td class="metadataValue">Yes</td></tr><tr valign="baseline"><td class="metadataTitle">Python type:</td><td class="metadataValue"><tt class="class">object</tt> or <tt class="class">None</tt></td></tr></table><h3>Remarks</h3><p>This property is a singleton; all Python modules running in the same 
    77instance of the Python interpreter share the same value for this property. It is 
    88initialized whenever the Geoprocessor property is initialized; see the 
     
    1818WrappedGeoprocessor as well, but they should consider using Geoprocessor 
    1919instead, to completely eliminate the chance that a bug in the wrapper would 
    20 affect their code.</p><div class="navigation"><div class="online-navigation"><p></p><hr /><table align="center" width="100%" cellpadding="0" cellspacing="2"><tr><td class="online-navigation"><a title="ArcGISServicePack Property" href="Property_GeoEco.ArcGIS.GeoprocessorManager.ArcGISServicePack.html?format=raw"><img src="previous.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Previous Page" /></a></td><td class="online-navigation"><a title="GeoprocessorManager Class" href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw"><img src="up.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Up one Level" /></a></td><td class="online-navigation"><a title="GetArcGISMajorVersion Method" href="Method_GeoEco.ArcGIS.GeoprocessorManager.GetArcGISMajorVersion.html?format=raw"><img src="next.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Next Page" /></a></td><td align="center" width="100%">GeoEco Python Reference</td><td class="online-navigation"><a title="Table of Contents" href="TableOfContents.html?format=raw"><img src="contents.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Table of Contents" /></a></td><td class="online-navigation"><a title="Module Index" href="ModuleIndex.html?format=raw"><img src="modules.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Module Index" /></a></td><td class="online-navigation"><img src="blank.png?format=raw" border="0" align="bottom" height="32" width="32" alt="" /></td></tr></table><div class="online-navigation"><b class="navlabel">Previous:</b> <a class="sectref" href="Property_GeoEco.ArcGIS.GeoprocessorManager.ArcGISServicePack.html?format=raw">ArcGISServicePack Property</a> <b class="navlabel">Up:</b> <a class="sectref" href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw">GeoprocessorManager Class</a> <b class="navlabel">Next:</b> <a class="sectref" href="Method_GeoEco.ArcGIS.GeoprocessorManager.GetArcGISMajorVersion.html?format=raw">GetArcGISMajorVersion Method</a> </div></div></div></body></html> 
     20affect their code.</p><div class="navigation"><div class="online-navigation"><p></p><hr /><table align="center" width="100%" cellpadding="0" cellspacing="2"><tr><td class="online-navigation"><a title="GeoprocessorIsCOMObject Property" href="Property_GeoEco.ArcGIS.GeoprocessorManager.GeoprocessorIsCOMObject.html?format=raw"><img src="previous.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Previous Page" /></a></td><td class="online-navigation"><a title="GeoprocessorManager Class" href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw"><img src="up.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Up one Level" /></a></td><td class="online-navigation"><a title="GetArcGISMajorVersion Method" href="Method_GeoEco.ArcGIS.GeoprocessorManager.GetArcGISMajorVersion.html?format=raw"><img src="next.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Next Page" /></a></td><td align="center" width="100%">GeoEco Python Reference</td><td class="online-navigation"><a title="Table of Contents" href="TableOfContents.html?format=raw"><img src="contents.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Table of Contents" /></a></td><td class="online-navigation"><a title="Module Index" href="ModuleIndex.html?format=raw"><img src="modules.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Module Index" /></a></td><td class="online-navigation"><img src="blank.png?format=raw" border="0" align="bottom" height="32" width="32" alt="" /></td></tr></table><div class="online-navigation"><b class="navlabel">Previous:</b> <a class="sectref" href="Property_GeoEco.ArcGIS.GeoprocessorManager.GeoprocessorIsCOMObject.html?format=raw">GeoprocessorIsCOMObject Property</a> <b class="navlabel">Up:</b> <a class="sectref" href="Class_GeoEco.ArcGIS.GeoprocessorManager.html?format=raw">GeoprocessorManager Class</a> <b class="navlabel">Next:</b> <a class="sectref" href="Method_GeoEco.ArcGIS.GeoprocessorManager.GetArcGISMajorVersion.html?format=raw">GetArcGISMajorVersion Method</a> </div></div></div></body></html> 
  • MGET/Trunk/PythonPackage/src/GeoEco/ArcGIS.py

    r65 r69  
    3939# as class attributes of the GeoprocessorManager class. But when I did that, 
    4040# their reference counts were never decreased to 0 by Python when the module was 
    41 # unloaded. This prevented the ArcGIS geoprocessor COM automation object from 
     41# unloaded. This prevented the ArcGIS geoprocessor COM Automation object from 
    4242# being released properly, which caused calls to its SetParameterAsText method 
    4343# to not work as intended. After very careful experimentation, I determined that 
     
    6969        # the geoprocessor from being released properly when the module unloads. 
    7070        # 
    71         # If it is ArcGIS 9.2 or later, we cannot return a weak reference 
    72         # because the geoprocessor object returned by arcgisscripting.create() 
    73         # does not have a __weakref__ member, which apparently is required to 
    74         # create weak references to an object. In this case we just return the 
    75         # object itself. 
     71        # First try to return a weak reference, so that the caller cannot 
     72        # accidentally hold on to a strong reference and thereby prevent the 
     73        # geoprocessor from being released properly when the module unloads. 
     74        # If the geoprocessor is the object returned by arcgisscripting.create() 
     75        # then a weak reference cannot be created to it because it does not have 
     76        # a __weakref__ member. In this case we just return the object itself. 
    7677         
    7778        if globals()['_Geoprocessor'] is not None: 
     
    113114        # For safety, return a weak reference to the geoprocessor wrapper, so 
    114115        # that the caller cannot accidentally hold on to a strong reference and 
    115         # thereby the wrapper (and enclosed geoprocessor) from being released 
    116         # properly when the module unloads. 
     116        # thereby prevent the wrapper (and enclosed geoprocessor) from being 
     117        # released properly when the module unloads. 
    117118         
    118119        if globals()['_WrappedGeoprocessor'] is not None: 
     
    121122 
    122123    WrappedGeoprocessor = property(GetWrappedGeoprocessor, doc=DynamicDocString()) 
     124 
     125    @classmethod 
     126    def GetGeoprocessorIsCOMObject(cls): 
     127        if not sys.modules.has_key('win32com.client'): 
     128            return False 
     129        try: 
     130            import win32com.client 
     131        except: 
     132            return False 
     133        if isinstance(cls.GetGeoprocessor(), win32com.client.CDispatch): 
     134            return True 
     135        return False 
     136 
     137    GeoprocessorIsCOMObject = property(GetGeoprocessorIsCOMObject, doc=DynamicDocString()) 
    123138 
    124139    @classmethod 
     
    162177        Logger.Debug(_(u'Initializing the ArcGIS geoprocessor object...')) 
    163178             
    164         # First try to import the arcgisscripting package, which was 
     179        # First try to import the arcgisscripting module, which was 
    165180        # introduced in ArcGIS 9.2. 
    166181 
     
    169184            import arcgisscripting 
    170185        except Exception, e: 
    171             Logger.Debug(_(u'The arcgisscripting Python package could not be imported (Python raised %s: %s). ArcGIS 9.2 or later is not installed on this machine.'), e.__class__.__name__, unicode(e)) 
     186            Logger.Debug(_(u'The arcgisscripting Python module could not be imported (Python raised %s: %s).'), e.__class__.__name__, unicode(e)) 
    172187            arcgissscriptingImported = False 
    173188 
    174         # If we succesfully imported the arcgisscripting package, use it to 
     189        # If we succesfully imported the arcgisscripting module, use it to 
    175190        # create the geoprocessor object. 
    176191 
     
    178193 
    179194        if arcgissscriptingImported: 
    180             Logger.Debug(_(u'Imported the arcgisscripting Python package. ArcGIS 9.2 or later must be installed on this machine.')) 
     195            Logger.Debug(_(u'Imported the arcgisscripting Python module.')) 
    181196            error = None 
    182197            try: 
     
    186201            if realGeoprocessor is None: 
    187202                if error is None: 
    188                     Logger.RaiseException(SoftwareNotInstalledError(_(u'This function requires ESRI ArcGIS. The function successfully imported the Python arcgisscripting package, suggesting that ArcGIS 9.2 or later is installed. But the arcgisscripting.create() function did not return the geoprocessor object (it returned None without raising an exception). Please verify that ArcGIS is properly installed.') % message)) 
    189                 Logger.RaiseException(SoftwareNotInstalledError(_(u'This function requires ESRI ArcGIS. The function successfully imported the Python arcgisscripting package, suggesting that ArcGIS 9.2 or later is installed. But the arcgisscripting.create() function raised an exception. Please verify that ArcGIS is properly installed. The exception was: %s') % (message, error))) 
     203                    Logger.RaiseException(SoftwareNotInstalledError(_(u'This function requires ESRI ArcGIS. The function successfully imported the Python arcgisscripting module, suggesting that ArcGIS 9.2 or later is installed. But the arcgisscripting.create() function did not return the geoprocessor object (it returned None without raising an exception). Please verify that ArcGIS is properly installed.') % message)) 
     204                Logger.RaiseException(SoftwareNotInstalledError(_(u'This function requires ESRI ArcGIS. The function successfully imported the Python arcgisscripting module, suggesting that ArcGIS 9.2 or later is installed. But the arcgisscripting.create() function raised an exception. Please verify that ArcGIS is properly installed. The exception was: %s') % (message, error))) 
    190205            Logger.Debug(_(u'Obtained ArcGIS geoprocessor object 0x%08X from arcgisscripting.create().'), id(realGeoprocessor)) 
    191206 
    192         # If we failed to import the arcgisscripting package, try the old 
    193         # technique of creating the IDispatch COM object. 
     207        # If we failed to import the arcgisscripting module, try the old 
     208        # technique of creating the COM Automation object. 
    194209 
    195210        else: 
     
    199214 
    200215            if platform.system().lower() != u'windows': 
    201                 Logger.RaiseException(SoftwareNotInstalledError(_(u'This function requires ESRI ArcGIS, which does not appear to be installed.'))) 
     216                Logger.RaiseException(SoftwareNotInstalledError(_(u'This function requires ESRI ArcGIS but it failed to import the Python arcgisscripting module. Either ArcGIS is not installed or is not compatible with this version of Python (%s). If ArcGIS is installed, please check the documentation to verify which version of Python you should be using (for example, ESRI technical article 31912 states that ArcGIS 9.2 requires Python 2.4.1.)') % sys.version.split(' ')[0])) 
    202217 
    203218            # Import the Python COM libraries. 
     
    206221                import pythoncom 
    207222            except Exception, e: 
    208                 Logger.RaiseException(SoftwareNotInstalledError(_(u'This function requires ESRI ArcGIS. ArcGIS  9.2 or a later version does not appear to be installed, because the Python arcgisscripting package could not be imported. A prior version might be installed, but in order for GeoEco to communicate with it, you must install the "Python for Windows extensions" Python package for the running version of Python (%s.%s). This package does not appear to be installed. It may be available at http://sourceforge.net/projects/pywin32. Debugging information: the Python statement "__import__(\'pythoncom\')" raised %s: %s') % (unicode(platform.python_version_tuple()[0]), unicode(platform.python_version_tuple()[1]), e.__class__.__name__, unicode(e)))) 
     223                Logger.RaiseException(SoftwareNotInstalledError(_(u'This function requires ESRI ArcGIS but it failed to import the Python arcgisscripting module or the pythoncom module. Most likely, either ArcGIS is not installed or the "Python for Windows extensions" Python package for the running version of Python (%s.%s) is not installed. Please see the Installation Instructions in the GeoEco documentation for information on how to properly configure your machine. Debugging information: the Python statement "__import__(\'pythoncom\')" raised %s: %s') % (unicode(platform.python_version_tuple()[0]), unicode(platform.python_version_tuple()[1]), e.__class__.__name__, unicode(e)))) 
    209224             
    210225            try: 
    211226                import win32com.client 
    212227            except Exception, e: 
    213                 Logger.RaiseException(SoftwareNotInstalledError(_(u'This function requires ESRI ArcGIS. ArcGIS 9.2 or a later version does not appear to be installed, because the Python arcgisscripting package could not be imported. A prior version might be installed, but in order for GeoEco to communicate with it, you must install the "Python for Windows extensions" Python package for the running version of Python (%s.%s). This package does not appear to be installed. It may be available at http://sourceforge.net/projects/pywin32. Debugging information: the Python statement "__import__(\'win32com.client\')" raised %s: %s') % (unicode(platform.python_version_tuple()[0]), unicode(platform.python_version_tuple()[1]), e.__class__.__name__, unicode(e)))) 
     228                Logger.RaiseException(SoftwareNotInstalledError(_(u'This function requires ESRI ArcGIS but it failed to import the Python arcgisscripting module or the win32com.client module. Most likely, either ArcGIS is not installed or the "Python for Windows extensions" Python package for the running version of Python (%s.%s) is not installed. Please see the Installation Instructions in the GeoEco documentation for information on how to properly configure your machine. Debugging information: the Python statement "__import__(\'win32com.client\')" raised %s: %s') % (unicode(platform.python_version_tuple()[0]), unicode(platform.python_version_tuple()[1]), e.__class__.__name__, unicode(e)))) 
    214229 
    215230            # Create the IDispatch object. 
     
    220235                realGeoprocessor = win32com.client.Dispatch(progID) 
    221236            except pythoncom.com_error, (hr, msg, exc, arg): 
    222                 Logger.RaiseException(SoftwareNotInstalledError(_(u'This function requires ESRI ArcGIS, which does not appear to be installed. This function was unable to import the arcgisscripting Python module, indicating that ArcGIS 9.2 or later is not installed. It was also unable to create the %s COM object, indicating that ArcGIS 9.0 or 9.1 is not installed. Debugging information: win32com.client.Dispatch(\'%s\') raised the exception: %s') % (progID, _FormatCOMError(hr, msg, exc, arg)))) 
     237                Logger.RaiseException(SoftwareNotInstalledError(_(u'This function requires ESRI ArcGIS but it failed to import the Python arcgisscripting module or instantiate the "%s" COM Automation object. Most likely, ArcGIS is not installed or there is a problem with your ArcGIS license server. Debugging information: win32com.client.Dispatch(\'%s\') raised the exception: %s') % (progID, _FormatCOMError(hr, msg, exc, arg)))) 
    223238            except Exception, e: 
    224                 Logger.RaiseException(SoftwareNotInstalledError(_(u'This function requires ESRI ArcGIS, which does not appear to be installed. This function was unable to import the arcgisscripting Python module, indicating that ArcGIS 9.2 or later is not installed. It was also unable to create the %s COM object, indicating that ArcGIS 9.0 or 9.1 is not installed. Debugging information: win32com.client.Dispatch(\'%s\') raised the exception: %s: %s') % (progID, e.__class__.__name__, unicode(e)))) 
    225             Logger.Debug(_(u'Obtained ArcGIS geoprocessor object 0x%08X by creating COM object %s.'), id(realGeoprocessor), progID) 
     239                Logger.RaiseException(SoftwareNotInstalledError(_(u'This function requires ESRI ArcGIS but it failed to import the Python arcgisscripting module or instantiate the "%s" COM Automation object. Most likely, ArcGIS is not installed or there is a problem with your ArcGIS license server. Debugging information: win32com.client.Dispatch(\'%s\') raised the exception: %s: %s') % (progID, e.__class__.__name__, unicode(e)))) 
     240            Logger.Debug(_(u'Obtained ArcGIS geoprocessor object 0x%08X by creating COM Automation object %s.'), id(realGeoprocessor), progID) 
    226241 
    227242        # We successfully created the geoprocessor object. 
     
    282297                 
    283298        # If we're on a non-Windows platform, all we can try to do is import the 
    284         # arcgisscripting package. If successful, we know that ArcGIS 9.2 or 
     299        # arcgisscripting module. If successful, we know that ArcGIS 9.2 or 
    285300        # later is installed. 
    286301 
    287302        else: 
    288             Logger.Debug(_(u'Importing the arcgisscripting Python package to determine if ArcGIS is installed on this machine...')) 
    289             arcgissscriptingImported = True 
     303            Logger.Debug(_(u'Importing the arcgisscripting Python module to determine if ArcGIS is installed on this machine...')) 
    290304            try: 
    291305                import arcgisscripting 
     
    293307                GeoprocessorManager._ArcGISMinorVersion = 2 
    294308                GeoprocessorManager._ArcGISServicePack = 0 
    295                 Logger.Debug(_(u'Imported the arcgisscripting Python package. ArcGIS 9.2 or later is installed on this machine. We do not presently know how to determine which version is installed, so we will assume it is 9.2.')) 
     309                Logger.Debug(_(u'Imported the arcgisscripting Python module. ArcGIS 9.2 or later is installed on this machine. We do not presently know how to determine which version is installed, so we will assume it is 9.2.')) 
    296310            except Exception, e: 
    297311                GeoprocessorManager._ArcGISMajorVersion = None 
    298312                GeoprocessorManager._ArcGISMinorVersion = None 
    299313                GeoprocessorManager._ArcGISServicePack = None 
    300                 Logger.Debug(_(u'The arcgisscripting Python package could not be imported (Python raised %s: %s). ArcGIS is not installed on this machine.'), e.__class__.__name__, unicode(e)) 
     314                Logger.Debug(_(u'The arcgisscripting Python module could not be imported (Python raised %s: %s). ArcGIS is not installed on this machine.'), e.__class__.__name__, unicode(e)) 
    301315 
    302316    @classmethod 
     
    614628            exec '%s_value = geoprocessor.%s' % (argsFromGPVars[i].Name, argsFromGPVars[i].InitializeToArcGISGeoprocessorVariable) in globals(), locals() 
    615629 
    616             # ArcGIS 9.1/9.2 compatibility hack: In 9.1, the OverwriteOutput 
    617             # variable was a boolean. In 9.2, it is an integer, at least if you 
    618             # obtain the geoprocessor using the recommended technique (import 
    619             # arcgisscripting). We handle this so the tool developer does not 
    620             # have to. 
    621  
    622             if sys.modules.has_key('arcgisscripting') and argsFromGPVars[i].InitializeToArcGISGeoprocessorVariable.lower() == u'overwriteoutput': 
     630            # ArcGIS compatibility hack: If the geoprocessor is a COM Automation 
     631            # object, then its OverwriteOutput variable is a boolean. If it is 
     632            # the object returned by arcgisscripting.create(), it is an integer. 
     633            # We handle this type change so called function does not have to. 
     634 
     635            if not GeoprocessorManager.GetGeoprocessorIsCOMObject() and argsFromGPVars[i].InitializeToArcGISGeoprocessorVariable.lower() == u'overwriteoutput': 
    623636                exec '%s_value = bool(%s_value)' % (argsFromGPVars[i].Name, argsFromGPVars[i].Name) in globals(), locals() 
    624637 
     
    837850            # Write the methods's definition. 
    838851            # 
    839             # In ArcGIS 9.1, we obtained the geoprocessor object through 
    840             # win32com. This object is a Python class with normal methods, and 
    841             # we can obtain their signatures through inspect.getargspec. 
     852            # If we obtained the geoprocessor object through COM Automation, the 
     853            # object is a Python class with normal methods, and we can obtain 
     854            # their signatures through inspect.getargspec. 
    842855            # 
    843             # In ArcGIS 9.2 and later, we obtained the geoprocessor object 
    844             # through arcgisscripting.create(). This returns an object that is 
    845             # not a class but that has attributes that are "builtin" functions. 
    846             # These methods cannot be inspected so we cannot determine their 
    847             # signatures. In this case, we just assume the signature is 
    848             # func(*args). This should work fine because our callers will not be 
    849             # passing in named formal parameters, nor will they be passing in 
    850             # keyword dictionaries. 
     856            # If we obtained the geoprocessor object through 
     857            # arcgisscripting.create(), the object is not a class, but it has 
     858            # attributes that are "builtin" functions. These functions cannot be 
     859            # inspected so we cannot determine their signatures. In this case, 
     860            # we just assume the signature is func(self, *args). This should 
     861            # work fine because our callers will not be passing in neither named 
     862            # formal parameters nor keyword dictionaries. 
    851863 
    852864            if isinstance(value, types.MethodType): 
     
    887899                value = _ArcGISObjectWrapper(value, objName) 
    888900 
    889         # As of ArcGIS 9.2, when the geoprocessor is obtained through the 
    890         # arcgisscripting Python module, it returns 8-bit strings, but if we 
    891         # obtain it through COM Automation, it returns Unicode strings. The 
    892         # caller should always be expecting Unicode, so we need to convert it. 
     901        # When the geoprocessor is obtained through arcgisscripting.create(), it 
     902        # returns 8-bit strings, but if we obtain it through COM Automation, it 
     903        # returns Unicode strings. The caller should always be expecting 
     904        # Unicode, so we need to convert it. 
    893905 
    894906        elif isinstance(value, types.StringType): 
     
    919931            return object.__setattr__(self, name, value) 
    920932 
    921         # As of ArcGIS 9.2, when the geoprocessor is obtained through the 
    922         # arcgisscripting Python module, it requires we give it 8-bit strings, 
    923         # but if we obtain it through COM Automation, it requires Unicode 
    924         # strings. The caller should always be passing in Unicode, so we need 
    925         # to convert it if arcgisscripting is loaded. 
    926  
    927         if sys.modules.has_key(u'arcgisscripting'): 
     933        # When the geoprocessor is obtained through arcgisscripting.create(), it 
     934        # requires we give it 8-bit strings, but if we obtain it through COM 
     935        # Automation, it requires Unicode strings. The caller should always be 
     936        # passing in Unicode, so we need to convert it if arcgisscripting was 
     937        # used. 
     938 
     939        if not GeoprocessorManager.GetGeoprocessorIsCOMObject(): 
    928940            value = UnicodeToUserPreferredEncoding(value) 
    929941 
     
    9931005        # Build the source code needed to invoke the method. 
    9941006        # 
    995         # As of ArcGIS 9.2, when the geoprocessor is obtained through the 
    996         # arcgisscripting Python module, it requires we give it 8-bit strings, 
    997         # but if we obtain it through COM Automation, it requires Unicode 
    998         # strings. The caller should always be passing in Unicode, so we need 
    999         # to convert it to 8-bit if arcgisscripting is loaded. 
     1007        # When the geoprocessor is obtained through arcgisscripting.create(), it 
     1008        # requires we give it 8-bit strings, but if we obtain it through COM 
     1009        # Automation, it requires Unicode strings. The caller should always be 
     1010        # passing in Unicode, so we need to convert it to 8-bit 
     1011        # arcgisscripting.create() was used. 
    10001012 
    10011013        sourceCode = 'self._Object.%s(' % method.__name__ 
     
    10031015            if not sourceCode.endswith('('): 
    10041016                sourceCode = sourceCode + ', ' 
    1005             if sys.modules.has_key(u'arcgisscripting'): 
     1017            if GeoprocessorManager.GetGeoprocessorIsCOMObject(): 
     1018                sourceCode = sourceCode + '%s=UserPreferredEncodingToUnicode(_locals[\'%s\'])' % (argName, argName) 
     1019            else: 
    10061020                sourceCode = sourceCode + '%s=UnicodeToUserPreferredEncoding(_locals[\'%s\'])' % (argName, argName) 
    1007             else: 
    1008                 sourceCode = sourceCode + '%s=UserPreferredEncodingToUnicode(_locals[\'%s\'])' % (argName, argName) 
    10091021        if _varargs is not None: 
    10101022            if not sourceCode.endswith('('): 
    10111023                sourceCode = sourceCode + ', ' 
    1012             if sys.modules.has_key(u'arcgisscripting'): 
     1024            if GeoprocessorManager.GetGeoprocessorIsCOMObject(): 
     1025                sourceCode = sourceCode + '*UserPreferredEncodingToUnicode(_locals[\'%s\']) ' % _varargs 
     1026            else: 
    10131027                sourceCode = sourceCode + '*UnicodeToUserPreferredEncoding(_locals[\'%s\']) ' % _varargs 
    1014             else: 
    1015                 sourceCode = sourceCode + '*UserPreferredEncodingToUnicode(_locals[\'%s\']) ' % _varargs 
    10161028        sourceCode = sourceCode + ')' 
    10171029 
     
    12661278    isExposedByCOM=True) 
    12671279 
     1280AddPropertyMetadata(GeoprocessorManager.GeoprocessorIsCOMObject, 
     1281    typeMetadata=BooleanTypeMetadata(), 
     1282    shortDescription=_(u'True if the object returned by the Geoprocessor property is a COM Automation object. False if it is some other kind of object (such as the object returned by arcgisscripting.create()).'), 
     1283    isExposedToPythonCallers=True, 
     1284    isExposedByCOM=True) 
     1285 
    12681286AddPropertyMetadata(GeoprocessorManager.ArcGISMajorVersion, 
    12691287    typeMetadata=IntegerTypeMetadata(canBeNone=True), 
     
    13131331AddArgumentMetadata(GeoprocessorManager.SetGeoprocessor, u'geoprocessor', 
    13141332    typeMetadata=AnyObjectTypeMetadata(), 
    1315     description=_(u'The ArcGIS geoprocessor object obtained from COM or the arcgisscripting Python module. See the documentation for the Geoprocessor property for more information.')) 
     1333    description=_(u'The ArcGIS geoprocessor object obtained from COM Automation or the arcgisscripting Python module. See the documentation for the Geoprocessor property for more information.')) 
    13161334 
    13171335# Public method: GeoprocessorManager.GetWrappedGeoprocessor 
     
    13851403using the following procedure: 
    13861404 
    1387 * Import the arcgisscripting Python package and invoke the create method. This 
     1405* Import the arcgisscripting Python module and invoke the create method. This 
    13881406  will succeed if ArcGIS 9.2 or later is installed on the machine. If this 
    1389   succeeds, the returned object is an unknown type. (Note: because I have not 
    1390   tried ArcGIS 9.2 yet, I don't know what kind of object is returned. If it is 
    1391   not an IDispatch interface, then it cannot be returned to COM callers. If you 
    1392   are calling InitializeGeoprocessor using COM, I am not sure what will happen. 
    1393   I will investigate this as soon as I can install ArcGIS 9.2.) 
    1394  
    1395 * If the step above fails, create the "esriGeoprocessing.GPDispatch" COM object 
    1396   using the Dispatch function provided by the win32com.client Python package. 
    1397   If this succeeds, the returned object is the COM IDispatch interface for the 
    1398   geoprocessor object."""), 
     1407  succeeds, the returned object is a custom type that has attributes but is not 
     1408  a class or class instance. 
     1409 
     1410* If the step above fails, create the "esriGeoprocessing.GPDispatch" COM 
     1411  Automation object using the Dispatch function provided by the win32com.client 
     1412  Python module. If this succeeds, the returned object is an instance of the 
     1413  win32com.client.CDispatch class."""), 
    13991414    isExposedToPythonCallers=True, 
    14001415    isExposedByCOM=True) 
  • MGET/Trunk/PythonPackage/src/GeoEco/Logging.py

    r65 r69  
    420420            from GeoEco.ArcGIS import GeoprocessorManager 
    421421            message = self.format(record) 
    422             if sys.modules.has_key(u'arcgisscripting'): 
     422            if GeoprocessorManager.GetGeoprocessorIsCOMObject(): 
     423                message = UserPreferredEncodingToUnicode(message) 
     424            else: 
    423425                message = UnicodeToUserPreferredEncoding(message) 
    424             else: 
    425                 message = UserPreferredEncodingToUnicode(message) 
    426426            if record.levelno >= logging.ERROR: 
    427427                GeoprocessorManager.GetGeoprocessor().AddError(message)