CheckOutExtension 可能会返回以下三个值之一: NotInitialized —尚未设置任何 Desktop 许可。 Unavailable —申请的许可不存在,无法设置。 CheckedOut —已成功设置许可。 代码示例 CheckOutExtension 示例 检出工具所使用的 3D 扩展模块。 importarcpyclassLicenseError(Exception):passtry:ifarcpy.CheckExtension("3D")=...
CheckOutExtension 可能会返回以下三个值之一: NotInitialized —尚未设置任何 Desktop 许可。 Unavailable —申请的许可不存在,无法设置。 CheckedOut —已成功设置许可。 代码示例 CheckOutExtension 示例 检出工具所使用的 3D 扩展模块。 importarcpyclassLicenseError(Exception):passtry:ifarcpy.CheckExtension("3D")=...
CheckInExtension example Return 3D extension license to License Manager. import arcpy class LicenseError(Exception): pass try: if arcpy.CheckExtension("3D") == "Available": arcpy.CheckOutExtension("3D") else: # raise a custom exception raise LicenseError arcpy.env.workspace = "c:/GrosMorne...
CheckInExtension example Return 3D extension license to License Manager. import arcpy class LicenseError(Exception): pass try: if arcpy.CheckExtension("3D") == "Available": arcpy.CheckOutExtension("3D") else: # raise a custom exception raise LicenseError arcpy.env.workspace = "c:/GrosMorne...
arcpy.Delete_management(rast)except:passpass 开发者ID:NERC-CEH,项目名称:arcapi,代码行数:19,代码来源:arcapi_test.py 示例3: testfill_no_data ▲点赞 6▼ # 需要导入模块: import arcpy [as 别名]# 或者: from arcpy importCheckOutExtension[as 别名]deftestfill_no_data(self):_dir = os.path....
arcpy.Delete_management(rast)except:passpass 开发者ID:NERC-CEH,项目名称:arcapi,代码行数:18,代码来源:arcapi_test.py 示例3: CheckOutNALicense ▲点赞 5▼ # 需要导入模块: import arcpy [as 别名]# 或者: from arcpy importCheckExtension[as 别名]defCheckOutNALicense():ifarcpy.CheckExtension("Netw...
importarcpy#Set up the environmentarcpy.env.overwriteOutput=Truearcpy.CheckOutExtension("network")#Set up variablesnetworkDataset="C:/Data/SanFrancisco.gdb/Transportation/Streets_ND"polygonBarriers="C:/Data/WeatberSlowDownAreas.shp"stops="C:/Data/SanFrancisco.gdb/Analysis/Stores"cutoff=3000impedanceAttri...
PLCheckinFile_production(product_library_workspace, product_library_itempath, overwrite_version, keep_checkedout, keep_localcopy) print "Script completed successfully." # Check in the extension arcpy.CheckInExtension("foundation") PLCheckinFile example 2 (stand-alone script) The following stand-...
CheckInExtension example Return 3D extension license to License Manager. import arcpy class LicenseError(Exception): pass try: if arcpy.CheckExtension("3D") == "Available": arcpy.CheckOutExtension("3D") else: # raise a custom exception raise LicenseError arcpy.env.workspace = "c:/GrosMorne...
ArcPy function that determines whether a license is available to be checked out for a specific type of extension.