GeoEco.ArcGIS.ArcGISDependency
- class GeoEco.ArcGIS.ArcGISDependency(minimumMajorVersion=3, minimumMinorVersion=2, minimumPatchVersion=None, productNames=['ArcGISPro', 'Server'], licenseLevels=None)
Bases:
DependencyA
Dependencythat checks that ArcGIS and its Python package is installed, and its version.When
Initialize()is called and the version numbers are checked, they will be extracted from the Version key of the dictionary returned byGetInstallInfo(), unless a ProVersion key exists, which will happen if ArcGIS Server is installed, in which case ProVersion will be used. This means that if ArcGIS Server is installed,Initialize()will check the version of ArcGIS Pro that Server is compatible with, not the version of ArcGIS Server itself.- Parameters:
minimumMajorVersion (
int, optional) – Minimum major version number of ArcGIS that must be installed. Minimum value꞉ 1.minimumMinorVersion (
int, optional) – Minimum major version number of ArcGIS that must be installed. Minimum value꞉ 0.minimumPatchVersion (
int, optional) – Minimum patch version number of ArcGIS that must be installed. Minimum value꞉ 0.productNames (
listofstr, optional) – List ArcGIS product names, at least one of which must be installed. Minimum length꞉ 1.licenseLevels (
listofstr, optional) – List ArcGIS license levels, at least one of which must be installed. If None, then license levels will not be checked. Minimum length꞉ 1.
- Returns:
New
ArcGISDependencyinstance.- Return type:
Properties
- property LicenseLevels
(
listofstrorNone) List ArcGIS license levels, at least one of which must be installed. If None, then license levels will not be checked. Minimum length꞉ 1.
- property MinimumMajorVersion
(
int) Minimum major version number of ArcGIS that must be installed. Read only. Minimum value꞉ 1.
- property MinimumMinorVersion
(
intorNone) Minimum major version number of ArcGIS that must be installed. Read only. Minimum value꞉ 0.
- property MinimumPatchVersion
(
intorNone) Minimum patch version number of ArcGIS that must be installed. Read only. Minimum value꞉ 0.
- property ProductNames
(
listofstr) List ArcGIS product names, at least one of which must be installed. Minimum length꞉ 1.
Methods
Returns the names of the software identified by this dependency, suitable to display to the user.
Check that the depended-upon software is available and initialize it for use.
Sets the minimum version number of ArcGIS that must be installed.