描述
Replaces null values in a feature class or table with the default values from the geodatabase feature class.
使用方法
Only feature classes or tables that have default values specified will have null values replaced.
语法
arcpy.defense.CalculateDefaultValues(in_datasets)
参数 | 说明 | 数据类型 |
in_datasets [in_datasets,...] | The feature classes and/or tables whose null values will be replaced with the default values from the data model. | Dataset; Feature Layer; Table View |
派生输出
名称 | 说明 | 数据类型 |
out_dataset | Output dataset where attributes were updated. | Table View; Feature Layer; Dataset |
代码示例
CalculateDefaultValues (stand-alone script)
This stand-alone script calculates the default values for several feature classes in the VMap2TLM geodatabase.
# Name: CalculateDefaultValues_Example.py
# Description: Calculates default values on a feature dataset based on default data model values
# Requirements: ArcGIS Defense Mapping solution
# Import arcpy module
import arcpy
# Check out a DefenseMapping extension license
arcpy.CheckOutExtension("defense")
# Local variables
in_datasets = "C:\\Data\\Defense\\VMap2TLM.mdb\\VMap2TLM\\BridgeL;C:\\Data\\10.0\\Defense\\VMap2TLM.mdb\\VMap2TLM\\BuildA;C:\\Data\\10.0\\Defense\\VMap2TLM.mdb\\VMap2TLM\\BuildL;C:\\Data\\10.0\\Defense\\VMap2TLM.mdb\\VMap2TLM\\BuildP;C:\\Data\\10.0\\Defense\\VMap2TLM.mdb\\VMap2TLM\\BuiltupA"
# Execute Calculate Default Values function
arcpy.CalculateDefaultValues_defense(in_datasets)
# Check in the Defense Mapping extension
arcpy.CheckInExtension("defense")
环境
此工具不使用任何地理处理环境。
许可信息
- Basic: 否
- Standard: 需要 Defense Mapping
- Advanced: 需要 Defense Mapping