GeoEco.ArcGIS.GeoprocessorManager.SetGeoprocessor

classmethod GeoprocessorManager.SetGeoprocessor(geoprocessor)

Instructs the GeoEco package to use the provided object as the ArcGIS geoprocessor.

In general, SetGeoprocessor() should never be used and is provided for testing purposes or very unusual scenarios in which it is necessary to substitute something for the real geoprocessor. Instead of using this function, call InitializeGeoprocessor() instead, to allow the GeoEco package to instantiate the geoprocessor itself.

If InitializeGeoprocessor() or SetGeoprocessor() has already been called and you call SetGeoprocessor() again, the GeoprocessorManager will delete its existing geoprocessor and utilize the new one you provide.

Parameters:

geoprocessor (object) – The instance to be used as the geoprocessor by the GeoEco package from now on.