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

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

ZScore Rendering

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

描述

Applies a cold (blue) to hot (red) color rendering scheme for a field of z-scores.

旧版本:

This is a deprecated tool. This functionality has been included in automatic outputs of the Hot Spot Analysis (Getis-Ord Gi*) and Cluster and Outlier Analysis (Anselin Local Moran's I) tools.

插图

Z-score Rendering illustration

使用方法

  • The Z Renderer creates a new layer file (.lyr) with z-scores rendered in the following manner:

    • Z-scores below –2 standard deviations are rendered dark blue.
    • Z-scores between –2 and –1 standard deviations are light blue.
    • Z-scores between –1 and +1 standard deviations are neutral.
    • Z-scores between 1 and 2 standard deviations are pink.
    • Z-scores above 2 standard deviations are bright red.
  • The Z Renderer is appropriate for symbolizing standard deviations including the output from both the Hot Spot Analysis and Cluster and Outlier Analysis tools.

  • 旧版本:

    Beginning with the ArcGIS 10 release, this tool is a built-in tool (rather than a Visual Basic executable). While every effort was made not to break custom model and script tools developed prior to ArcGIS 10, there may be cases where older models that use this tool must be rebuilt in order for the model to run.

  • 地图图层可用于定义输入要素类。在使用带有选择内容的图层时,分析只会包括所选的要素。

语法

arcpy.stats.ZRenderer(input_feature_class, field_to_render, output_layer_file)
参数说明数据类型
input_feature_class

The feature class containing a field with standardized z-scores.

Feature Layer
field_to_render

The name of the field containing the z-scores.

Field
output_layer_file

The new output layer file to store rendering information. You must include the .lyr extension as part of the file name.

Layer File

代码示例

ZScore Rendering Example (Python Window)

The following Python Window script demonstrates how to use the ZScore Rendering tool.

import arcpy
arcpy.env.workspace = r"C:\data"
arcpy.ZRenderer_stats("hotspot_output.shp", "GiInvDst", "hotspot_output_rendered.lyr")
ZScore Rendering Example (stand-alone Python script)

The following stand-alone Python script demonstrates how to use the ZScore Rendering tool.

# Perform Hot Spot Analysis for assault incidents
 
# Import system modules
import arcpy
 
# Local variables...
workspace = r"C:\data"
input = "assaults.shp"
collect_output = "collect_output.shp"
collect_count_field = "Count"
hotspot_output = "hotspot_output.shp"
hotspot_output_rendered = "hotspot_output_rendered.lyr"
z_score_field_name = "GiInvDst"
 
try:
    # Set the current workspace (to avoid having to specify the full path to the feature classes each time)
    arcpy.env.workspace = workspace
 
    # Convert assault incidents into weighted point data
    # Process: Collect Events...
    arcpy.CollectEvents_stats(input, collect_output)
 
    # Calculate Getis-Ord Gi* statistic
    # Process: Hot Spot Analysis (Getis-Ord Gi*)...
    arcpy.HotSpots_stats(collect_output, collect_count_field, hotspot_output, "INVERSE_DISTANCE", "EUCLIDEAN_DISTANCE", "NONE", "#", "#", "#")
 
    # Render hot spot analysis
    # Process: ZScore Rendering...
    arcpy.ZRenderer_stats(hotspot_output, z_score_field_name, hotspot_output_rendered)
 
except:
    # If an error occurred when running the tool, print out the error message.
    print arcpy.GetMessages(2)

环境

  • 当前工作空间
  • 临时工作空间

许可信息

  • Basic: 是
  • Standard: 是
  • Advanced: 是

相关主题

  • 热点分析(Getis-Ord Gi*)
  • 聚类和异常值分析 (Anselin Local Moran's I)

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS

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

关于 Esri

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