Changeset 69
- Timestamp:
- 05/02/07 17:37:37 (6 years ago)
- Location:
- MGET/Trunk/PythonPackage
- Files:
-
- 9 modified
-
dist/GeoEco-0.1.0a1.win32-py2.4.exe (modified) (previous)
-
dist/GeoEco-0.1.0a1.win32-py2.5.exe (modified) (previous)
-
dist/TracOnlineDocumentation/Documentation/PythonReference/Class_GeoEco.ArcGIS.GeoprocessorManager.html (modified) (1 diff)
-
dist/TracOnlineDocumentation/Documentation/PythonReference/Method_GeoEco.ArcGIS.GeoprocessorManager.InitializeGeoprocessor.html (modified) (1 diff)
-
dist/TracOnlineDocumentation/Documentation/PythonReference/Method_GeoEco.ArcGIS.GeoprocessorManager.SetGeoprocessor.html (modified) (1 diff)
-
dist/TracOnlineDocumentation/Documentation/PythonReference/Property_GeoEco.ArcGIS.GeoprocessorManager.ArcGISServicePack.html (modified) (1 diff)
-
dist/TracOnlineDocumentation/Documentation/PythonReference/Property_GeoEco.ArcGIS.GeoprocessorManager.WrappedGeoprocessor.html (modified) (2 diffs)
-
src/GeoEco/ArcGIS.py (modified) (22 diffs)
-
src/GeoEco/Logging.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
MGET/Trunk/PythonPackage/dist/TracOnlineDocumentation/Documentation/PythonReference/Class_GeoEco.ArcGIS.GeoprocessorManager.html
r61 r69 4 4 td.metadataTitle { font-size: 80%; font-weight: bold; font-family: avantgarde, sans-serif; } 5 5 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 9 9 ArcGIS and then call SetGeoprocessor().</p><p>If the Geoprocessor property is not empty, this method returns without doing 10 10 anything. 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. This11 using the following procedure:</p><ul><li>Import the arcgisscripting Python module and invoke the create method. This 12 12 will 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> 13 succeeds, the returned object is a custom type that has attributes but is not 14 a class or class instance.</li><li>If the step above fails, create the "esriGeoprocessing.GPDispatch" COM 15 Automation object using the Dispatch function provided by the win32com.client 16 Python module. If this succeeds, the returned object is an instance of the 17 win32com.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 4 4 td.metadataTitle { font-size: 80%; font-weight: bold; font-family: avantgarde, sans-serif; } 5 5 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 4 4 td.metadataTitle { font-size: 80%; font-weight: bold; font-family: avantgarde, sans-serif; } 5 5 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">WrappedGeoprocessorProperty</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 4 4 td.metadataTitle { font-size: 80%; font-weight: bold; font-family: avantgarde, sans-serif; } 5 5 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">ArcGISServicePackProperty</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 same6 </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 7 7 instance of the Python interpreter share the same value for this property. It is 8 8 initialized whenever the Geoprocessor property is initialized; see the … … 18 18 WrappedGeoprocessor as well, but they should consider using Geoprocessor 19 19 instead, 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">ArcGISServicePackProperty</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>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="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 39 39 # as class attributes of the GeoprocessorManager class. But when I did that, 40 40 # their reference counts were never decreased to 0 by Python when the module was 41 # unloaded. This prevented the ArcGIS geoprocessor COM automation object from41 # unloaded. This prevented the ArcGIS geoprocessor COM Automation object from 42 42 # being released properly, which caused calls to its SetParameterAsText method 43 43 # to not work as intended. After very careful experimentation, I determined that … … 69 69 # the geoprocessor from being released properly when the module unloads. 70 70 # 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. 76 77 77 78 if globals()['_Geoprocessor'] is not None: … … 113 114 # For safety, return a weak reference to the geoprocessor wrapper, so 114 115 # that the caller cannot accidentally hold on to a strong reference and 115 # thereby the wrapper (and enclosed geoprocessor) from being released116 # properly when the module unloads.116 # thereby prevent the wrapper (and enclosed geoprocessor) from being 117 # released properly when the module unloads. 117 118 118 119 if globals()['_WrappedGeoprocessor'] is not None: … … 121 122 122 123 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()) 123 138 124 139 @classmethod … … 162 177 Logger.Debug(_(u'Initializing the ArcGIS geoprocessor object...')) 163 178 164 # First try to import the arcgisscripting package, which was179 # First try to import the arcgisscripting module, which was 165 180 # introduced in ArcGIS 9.2. 166 181 … … 169 184 import arcgisscripting 170 185 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)) 172 187 arcgissscriptingImported = False 173 188 174 # If we succesfully imported the arcgisscripting package, use it to189 # If we succesfully imported the arcgisscripting module, use it to 175 190 # create the geoprocessor object. 176 191 … … 178 193 179 194 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.')) 181 196 error = None 182 197 try: … … 186 201 if realGeoprocessor is None: 187 202 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))) 190 205 Logger.Debug(_(u'Obtained ArcGIS geoprocessor object 0x%08X from arcgisscripting.create().'), id(realGeoprocessor)) 191 206 192 # If we failed to import the arcgisscripting package, try the old193 # technique of creating the IDispatch COMobject.207 # If we failed to import the arcgisscripting module, try the old 208 # technique of creating the COM Automation object. 194 209 195 210 else: … … 199 214 200 215 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])) 202 217 203 218 # Import the Python COM libraries. … … 206 221 import pythoncom 207 222 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)))) 209 224 210 225 try: 211 226 import win32com.client 212 227 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)))) 214 229 215 230 # Create the IDispatch object. … … 220 235 realGeoprocessor = win32com.client.Dispatch(progID) 221 236 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)))) 223 238 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) 226 241 227 242 # We successfully created the geoprocessor object. … … 282 297 283 298 # 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 or299 # arcgisscripting module. If successful, we know that ArcGIS 9.2 or 285 300 # later is installed. 286 301 287 302 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...')) 290 304 try: 291 305 import arcgisscripting … … 293 307 GeoprocessorManager._ArcGISMinorVersion = 2 294 308 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.')) 296 310 except Exception, e: 297 311 GeoprocessorManager._ArcGISMajorVersion = None 298 312 GeoprocessorManager._ArcGISMinorVersion = None 299 313 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)) 301 315 302 316 @classmethod … … 614 628 exec '%s_value = geoprocessor.%s' % (argsFromGPVars[i].Name, argsFromGPVars[i].InitializeToArcGISGeoprocessorVariable) in globals(), locals() 615 629 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': 623 636 exec '%s_value = bool(%s_value)' % (argsFromGPVars[i].Name, argsFromGPVars[i].Name) in globals(), locals() 624 637 … … 837 850 # Write the methods's definition. 838 851 # 839 # I n ArcGIS 9.1, we obtained the geoprocessor object through840 # win32com. This object is a Python class with normal methods, and841 # we can obtaintheir 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. 842 855 # 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. 851 863 852 864 if isinstance(value, types.MethodType): … … 887 899 value = _ArcGISObjectWrapper(value, objName) 888 900 889 # As of ArcGIS 9.2, when the geoprocessor is obtained through the890 # arcgisscripting Python module, it returns 8-bit strings, but if we891 # obtain it through COM Automation, it returns Unicode strings. The892 # caller should always be expectingUnicode, 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. 893 905 894 906 elif isinstance(value, types.StringType): … … 919 931 return object.__setattr__(self, name, value) 920 932 921 # As of ArcGIS 9.2, when the geoprocessor is obtained through the922 # arcgisscripting Python module, it requires we give it 8-bit strings,923 # but if we obtain it through COM Automation, it requires Unicode924 # strings. The caller should always be passing in Unicode, so we need925 # 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(): 928 940 value = UnicodeToUserPreferredEncoding(value) 929 941 … … 993 1005 # Build the source code needed to invoke the method. 994 1006 # 995 # As of ArcGIS 9.2, when the geoprocessor is obtained through the996 # arcgisscripting Python module, it requires we give it 8-bit strings,997 # but if we obtain it through COM Automation, it requires Unicode998 # strings. The caller should always be passing in Unicode, so we need999 # 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. 1000 1012 1001 1013 sourceCode = 'self._Object.%s(' % method.__name__ … … 1003 1015 if not sourceCode.endswith('('): 1004 1016 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: 1006 1020 sourceCode = sourceCode + '%s=UnicodeToUserPreferredEncoding(_locals[\'%s\'])' % (argName, argName) 1007 else:1008 sourceCode = sourceCode + '%s=UserPreferredEncodingToUnicode(_locals[\'%s\'])' % (argName, argName)1009 1021 if _varargs is not None: 1010 1022 if not sourceCode.endswith('('): 1011 1023 sourceCode = sourceCode + ', ' 1012 if sys.modules.has_key(u'arcgisscripting'): 1024 if GeoprocessorManager.GetGeoprocessorIsCOMObject(): 1025 sourceCode = sourceCode + '*UserPreferredEncodingToUnicode(_locals[\'%s\']) ' % _varargs 1026 else: 1013 1027 sourceCode = sourceCode + '*UnicodeToUserPreferredEncoding(_locals[\'%s\']) ' % _varargs 1014 else:1015 sourceCode = sourceCode + '*UserPreferredEncodingToUnicode(_locals[\'%s\']) ' % _varargs1016 1028 sourceCode = sourceCode + ')' 1017 1029 … … 1266 1278 isExposedByCOM=True) 1267 1279 1280 AddPropertyMetadata(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 1268 1286 AddPropertyMetadata(GeoprocessorManager.ArcGISMajorVersion, 1269 1287 typeMetadata=IntegerTypeMetadata(canBeNone=True), … … 1313 1331 AddArgumentMetadata(GeoprocessorManager.SetGeoprocessor, u'geoprocessor', 1314 1332 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.')) 1316 1334 1317 1335 # Public method: GeoprocessorManager.GetWrappedGeoprocessor … … 1385 1403 using the following procedure: 1386 1404 1387 * Import the arcgisscripting Python package and invoke the create method. This1405 * Import the arcgisscripting Python module and invoke the create method. This 1388 1406 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."""), 1399 1414 isExposedToPythonCallers=True, 1400 1415 isExposedByCOM=True) -
MGET/Trunk/PythonPackage/src/GeoEco/Logging.py
r65 r69 420 420 from GeoEco.ArcGIS import GeoprocessorManager 421 421 message = self.format(record) 422 if sys.modules.has_key(u'arcgisscripting'): 422 if GeoprocessorManager.GetGeoprocessorIsCOMObject(): 423 message = UserPreferredEncodingToUnicode(message) 424 else: 423 425 message = UnicodeToUserPreferredEncoding(message) 424 else:425 message = UserPreferredEncodingToUnicode(message)426 426 if record.levelno >= logging.ERROR: 427 427 GeoprocessorManager.GetGeoprocessor().AddError(message)
