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

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

Count Rendering

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

摘要

Applies graduated circle rendering to a numeric field in a feature class.

旧版本:

This tool is deprecated. Due to new capabilities in ArcGIS that allow output from scripts and model tools to be associated with default rendering, this functionality has been included in the automatic output of the Collect Events tool.

插图

Count Renderer illustration

用法

  • The Count Rendering tool renders quantities as circles; circle size reflects value magnitudes. Tool output is a new layer file (.lyr).

  • Rendering features quantitatively may reveal spatial patterns in the input count data.

  • If no Maximum Field Value is provided, it is set to the largest value found in the Field to Render. Use the Maximum Field Value parameter when you want to compare several graduated circle maps; setting the same Maximum Field Value for a series of maps imposes a fixed circle size scaling even when the data ranges vary.

  • 旧版本:
    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 10, there may be cases where older models that use this tool must be rebuilt in order for the model to run.

语法

CountRenderer_stats (input_feature_class, field_to_render, output_layer_file, number_of_classes, symbol_color, {maximum_field_value})
参数说明数据类型
input_feature_class

The feature layer containing count data to be rendered.

Feature Layer
field_to_render

The name of the field containing count data.

Field
output_layer_file

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

Layer File
number_of_classes

The number of classes into which the input feature class will be classified.

Long
symbol_color

The color of the graduated circles.

  • MANGO
  • BRIGHT_RED
  • DARK_GREEN
  • GREEN
  • DARK_BLUE
  • BRIGHT_PINK
  • LIGHT_YELLOW
  • SKY_BLUE
String
maximum_field_value
(可选)

The maximum attribute value that will be rendered. Features with field values greater than this maximum value will not be drawn.

Double

代码示例

CountRenderer example 1 (Python window)

The following Python window script demonstrates how to use the CountRenderer tool.

import arcpy
arcpy.env.workspace = "c:/data"
arcpy.CountRenderer_stats("autotheft_weighted.shp", "Count", "auto_weight_rendered.lyr", "5", "mango","#")
CountRenderer example 2 (stand-alone Python script)

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

# Convert incident data to weighted point data and render
 
# Import system modules
import arcpy, sys, string, os
 
# Local variables...
workspace = "C:/data"
input = "AutoTheft.shp"
input_weighted = "autotheft_weighted.shp"
results_field = "Count"
input_weighted_rendered = "auto_weight_rendered.lyr"
 
try:
    # Set the current workspace (to avoid having to specify the full path to the feature classes each time)
    arcpy.env.workspace = workspace
 
    # Process: Collect Events...
    arcpy.CollectEvents_stats(input, input_weighted, results_field)
 
    # Process: Count Rendering...
    arcpy.CountRenderer_stats(input_weighted, results_field, input_weighted_rendered, "5", "MANGO", "#")
 
except:
    # If an error occurred when running the tool, print out the error message.
    print arcpy.GetMessages()

环境

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

许可信息

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

相关主题

  • 收集事件

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS 平台

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

关于 Esri

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