GeoEco.ArcGIS.GeoprocessorManager.GetGeoprocessor

classmethod GeoprocessorManager.GetGeoprocessor()

Returns a weakref to the ArcGIS geoprocessor that the GeoEco package is using.

This function will return None until InitializeGeoprocessor() or SetGeoprocessor() has been called. In general, GeoEco functions that need the geoprocessor should call GetWrappedGeoprocessor() rather than GetGeoprocessor(), because the wrapped geoprocessor provides logging that can be useful in debugging. See GetWrappedGeoprocessor() for more information.

This function returns a weakref so that callers do not inadvertently maintain references to GeoEco’s instance of the geoprocessor and prevent it from being released.

Returns:

A weakref to the ArcGIS geoprocessor that the GeoEco package is using, or None if neither InitializeGeoprocessor() nor SetGeoprocessor() has been called yet.

Return type:

object