ArcGIS Desktop

  • 文档
  • 支持

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

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

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS for Developers

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

ArcGIS Solutions

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

ArcGIS Marketplace

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

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

ArcMap

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

Cluster/Outlier Analysis with Rendering

  • 摘要
  • 插图
  • 用法
  • 语法
  • 代码示例
  • 环境
  • 许可信息

摘要

Given a set of weighted features, identifies hot spots, cold spots, and spatial outliers using the Anselin Local Moran's I statistic. It then applies cold-to-hot rendering to the z-score results.

旧版本:

This tool is deprecated. Due to new capabilities in ArcGIS that allow output from script and model tools to be associated with default rendering, this functionality has been included in the automatic output of the Cluster and Outlier Analysis (Anselin Local Moran's I) tool.

插图

Cluster and Outlier Analysis illustration

用法

  • The Cluster/Outlier Analysis with Rendering tool combines the Clusters and Outlier Analysis and ZScore Rendering tools in a model. The Output Layer File is automatically added to the TOC with hot/cold rendering applied to feature z-scores.

  • Begining with ArcGIS 9.3, output from the Clusters and Outlier Analysis is automatically added to the TOC with default rendering applied to the COTYPE field, showing statistically significant hot spots, cold spots and spatial outliers.

语法

ClustersOutliersRendered_stats (Input_Feature_Class, Input_Field, Output_Layer_File, Output_Feature_Class)
参数说明数据类型
Input_Feature_Class

The feature class for which cluster analysis will be performed.

Feature Layer
Input_Field

The field to be evaluated.

Field
Output_Layer_File

The output layer file to store rendering information.

Layer File
Output_Feature_Class

The output feature class to receive the results field, z-score, p-value, and cluster type designation.

Feature Class

代码示例

Cluster and Outlier Analysis with Rendering Example (Python Window)

The following Python Window script demonstrates how to use the Cluster and Outlier Analysis with Rendering tool.

import arcpy
arcpy.env.workspace = "c:/data/911calls"
arcpy.ClustersOutliersRendered_stats("911Count.shp", "ICOUNT","911ClusterOutlier_rendered.lyr", "911ClusterOutlier.shp")
Cluster and Outlier Analysis with Rendering Example (Stand-alone Python script).

The following stand-alone Python script demonstrates how to use the Cluster and Outlier Analysis with Rendering tool.

# Analyze the spatial distribution of 911 calls in a metropolitan area
# using the Cluster-Outlier Analysis with Rendering Tool (Anselin's Local Moran's I)

# Import system modules
import arcpy

# Set geoprocessor object property to overwrite outputs if they already exist
arcpy.gp.OverwriteOutput = True

# Local variables...
workspace = r"C:\Data\911Calls"

try:
    # Set the current workspace (to avoid having to specify the full path to the feature classes each time)
    arcpy.env.workspace = workspace

    # Copy the input feature class and integrate the points to snap
    # together at 500 feet
    # Process: Copy Features and Integrate
    cf = arcpy.CopyFeatures_management("911Calls.shp", "911Copied.shp",
                         "#", 0, 0, 0)

    integrate = arcpy.Integrate_management("911Copied.shp #", "500 Feet")

    # Use Collect Events to count the number of calls at each location
    # Process: Collect Events
    ce = arcpy.CollectEvents_stats("911Copied.shp", "911Count.shp", "Count", "#")

    # Cluster/Outlier Analysis of 911 Calls
    # Process: Local Moran's I
    clusters = arcpy.ClustersOutliersRendered_stats("911Count.shp", "ICOUNT", 
                        "911ClusterOutlier_rendered.lyr", "911ClusterOutlier.shp")

except:
    # If an error occurred when running the tool, print out the error message.
    print arcpy.GetMessages()

环境

  • 当前工作空间
  • 临时工作空间
  • 输出坐标系
    注:

    Feature geometry is projected to the Output Coordinate System prior to analysis, so values entered for the Distance Band or Threshold Distance parameter should match those specified in the Output Coordinate System. All mathematical computations are based on the spatial reference of the Output Coordinate System.

  • 限定的字段名
  • 输出包含 Z 值
  • 默认输出 Z 值
  • 输出包含 M 值

许可信息

  • ArcGIS Desktop Basic: 是
  • ArcGIS Desktop Standard: 是
  • ArcGIS Desktop Advanced: 是

相关主题

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

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS 平台

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

关于 Esri

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