Acrpy 之错误代码 000824

今天在利用Arcpy处理数据时出现 000824 错误,通过查找资料了解到这是由于扩展模块工具默认不可用,需要加载扩展模块。

1、错误代码

错误提示

2、解决办法

通过CheckExtension函数引用模块。

1
2
# Check out the ArcGIS Spatial Analyst extension license
arcpy.CheckOutExtension("[扩展编码]")

扩展模块及对应的扩展编码如下:

扩展模块 扩展编码
ArcGIS 3D Analyst 3D
ArcGIS Data Interoperability 10.5.1 for Desktop DataInteroperability
ArcGIS Data Reviewer for Desktop Datareviewer
ArcGIS for Aviation:Airports Airports
ArcGIS for Aviation:Charting Aeronautical
ArcGIS for Maritime:Bathymetry Bathymetry
ArcGIS for Maritime:Charting Nautical
ArcGIS Geostatistical Analyst GeoStats
ArcGIS Network Analyst Network
ArcGIS Spatial Analyst Spatial
ArcGIS Schematics Schematics
ArcGIS Tracking Analyst racking
ArcGIS Workflow Manager for Desktop JTX
ArcScan ArcScan
Business Analyst Business
Esri Defense Mapping Defense
Esri Production Mapping Foundation
Esri Roads and Highways Highways
StreetMap StreetMap

3、参考链接

Arcpy:Error 000824 The tool is not licensed 解决方式
如果对您有用的话,别忘了给点个赞哦^_^ !