ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

专为贵组织打造的制图平台

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS Developers

用于构建位置感知应用程序的工具

ArcGIS Solutions

适用于行业的免费模板地图和应用程序

ArcGIS Marketplace

获取适用于组织的应用程序和数据

  • 文档
  • 支持
Esri
  • 登录
user
  • 我的个人资料
  • 登出

ArcMap

  • 主页
  • 入门
  • 地图
  • 分析
  • 管理数据
  • 工具
  • 扩展模块

计算 Z 值

需要 Geostatistical Analyst 许可。

  • 描述
  • 使用方法
  • 语法
  • 代码示例
  • 环境
  • 许可信息

描述

在地统计图层中使用插值模型预测单个位置的值。

使用方法

  • 此工具通常只用于模型或脚本中。在 ArcMap 中,识别工具也可以用来计算单个位置的预测值。

语法

arcpy.ga.GACalculateZValue(in_geostat_layer, point_coord)
参数说明数据类型
in_geostat_layer

要分析的地统计图层。

Geostatistical Layer
point_coord

需要计算 Z 值点的 x,y 坐标。

Point

派生输出

名称说明数据类型
out_z_value

根据指定的 x,y 坐标预测的 z 值。

双精度型

代码示例

GACalculateZValue(Python 窗口)

使用克里金地统计图层预测某个位置的值。

import arcpy
arcpy.env.workspace = "C:/gapyexamples/data"
outCZV = arcpy.GACalculateZValue_ga("C:/gapyexamples/data/Kriging.lyr", 
                                    "-2000000 -50000")
print outCZV
GACalculateZValue(独立脚本)

使用克里金地统计图层预测某个位置的值。

# Name: CalculateZValue_Example_02.py
# Description: Uses the interpolation model in a geostatistical 
#              layer to predict a value at a single location.
# Requirements: Geostatistical Analyst Extension

# Import system modules
import arcpy

# Set environment settings
arcpy.env.workspace = "C:/gapyexamples/data"

# Set local variables
inGALayer = "C:/gapyexamples/data/Kriging.lyr"
pointCoord = "-2000000 -50000"

# Check out the ArcGIS Geostatistical Analyst extension license
arcpy.CheckOutExtension("GeoStats")

# Execute CalculateZValue
outCZV = arcpy.GACalculateZValue_ga(inGALayer, pointCoord)

# Print results
print outCZV

环境

  • 当前工作空间

许可信息

  • Basic: 需要 Geostatistical Analyst
  • Standard: 需要 Geostatistical Analyst
  • Advanced: 需要 Geostatistical Analyst

相关主题

  • 使用地统计图层工具集概述

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

关于 Esri

  • 关于我们
  • 招贤纳士
  • Esri 博客
  • 用户大会
  • 开发者峰会
Esri
分享您的想法。
Copyright © 2021 Esri. | 隐私政策 | 法律声明