获取栅格属性 (数据管理)
摘要
返回栅格数据集的属性。
用法
-
返回的属性将显示在地理处理窗口中。
语法
GetRasterProperties_management (in_raster, {property_type})
| 参数 | 说明 | 数据类型 |
in_raster |
输入栅格数据集。 | Raster Layer |
property_type (可选) |
要从栅格数据集获取的属性。
| String |
代码示例
GetRasterProperties 示例 1(Python 窗口)
这是 GetRasterProperties 的 Python 示例
import arcpy
#Get the geoprocessing result object
elevSTDResult = arcpy.GetRasterProperties_management("c:/data/elevation", "STD")
#Get the elevation standard deviation value from geoprocessing result object
elevSTD = elevSTDResult.getOutput(0)
GetRasterProperties 示例 2(独立脚本)
这是 GetRasterProperties 的 Python 脚本示例
import arcpy
#Get the geoprocessing result object
elevSTDResult = arcpy.GetRasterProperties_management("c:/data/elevation", "STD")
#Get the elevation standard deviation value from geoprocessing result object
elevSTD = elevSTDResult.getOutput(0) 环境
相关主题
许可信息
ArcView: 是
ArcEditor: 是
ArcInfo: 是
7/10/2012