Color Coded Layer (Business Analyst)

获得 Business Analyst 许可后可用。

摘要

Creates multilevel, scale-dependent choropleth layers from a variable describing a business, demographic, consumer, or landscape characteristic.

插图

Color Coded Layer tool illustration

使用情况

  • The tool outputs a group layer containing scale-dependent administrative geography levels with a user-defined variable. By default, all levels and all features within each level are included in the group layer.

  • Local data or online data can be used to create a color coded layer. The data can be explored through the data browser.

  • The Area of Interest parameter defines the geographic extent of the analysis. The following also pertains to the area of interest:

    • It's only supported with local data.
    • The output creates a feature dataset.
    • If specified, administrative geography levels intersecting the area of interest that include more than 10,000 features are not included in the group layer.
    • If specified, it enables the Color Coded Group Layer symbology pane and ribbon contextual menu and supports additional settings and usability features outside of this tool.
  • When the Classification Method parameter is set to Auto, the following methods will be used for each variable type:

    Natural Breaks (Jenks)

    Count, Density

    Quantile

    Average

    Equal Interval

    Percent, Median, Index, Ratio, Rate, Per capita

  • Custom data (.sdcx file) variables only include the custom feature layer; multiple levels are not created.

参数

标注说明数据类型
Classification Variable

A variable that will display as a color-coded map.

String
Output Layer Name

The name of the color-coded layer that will be added to the map.

String
Classification Method

Specifies the method that will be used to calculate the class breaks.

  • Natural Breaks (Jenks)Natural breaks classes are based on natural groupings inherent in the data. Class breaks that best group similar values and that maximize the differences between classes will be identified. This is the default.
  • QuantileEach class will contain an equal number of features. A quantile classification is well suited to linearly distributed data.
  • Equal IntervalThe range of attribute values will be divided into equal-sized subranges. This allows you to specify the number of intervals, and will automatically determine the class breaks based on the value range.
  • Geometric IntervalClass breaks will be created based on class intervals that have a geometric series. The geometric coefficient in this classifier can change once (to its inverse) to optimize the class ranges.
  • AutoClassification methods will be automatically defined using the variable metadata. This presents the recommended thematic map style based on the data type.
String
Number of Classes

The number of data classification breaks that will appear on the map. The default value is 5.

String
Area of Interest
(可选)

A feature layer that will be used to determine the geographic extent of the analysis.

Feature Layer
Output Geodatabase
(可选)

The geodatabase in which the output feature dataset will be created.

Workspace
Feature Dataset Name
(可选)

The name of the feature dataset in the output geodatabase in which the color-coded layer feature classes will be created.

String

派生输出

标注说明数据类型
Output Layer

A container for the output layer.

Group Layer
Updated Feature Dataset

The new output feature dataset.

Feature Dataset

arcpy.ba.ColorCodedLayer(classification_variable, out_layer_name, classification_method, number_of_classes, {area_of_interest}, {out_dataset_path}, {out_dataset_name})
名称说明数据类型
classification_variable

A variable that will display as a color-coded map.

String
out_layer_name

The name of the color-coded layer that will be added to the map.

String
classification_method

Specifies the method that will be used to calculate the class breaks.

  • NATURAL_BREAKSNatural breaks classes are based on natural groupings inherent in the data. Class breaks that best group similar values and that maximize the differences between classes will be identified. This is the default.
  • QUANTILEEach class will contain an equal number of features. A quantile classification is well suited to linearly distributed data.
  • EQUAL_INTERVALThe range of attribute values will be divided into equal-sized subranges. This allows you to specify the number of intervals, and will automatically determine the class breaks based on the value range.
  • GEOMETRIC_INTERVALClass breaks will be created based on class intervals that have a geometric series. The geometric coefficient in this classifier can change once (to its inverse) to optimize the class ranges.
  • AUTOClassification methods will be automatically defined using the variable metadata. This presents the recommended thematic map style based on the data type.
String
number_of_classes

The number of data classification breaks that will appear on the map. The default value is 5.

String
area_of_interest
(可选)

A feature layer that will be used to determine the geographic extent of the analysis.

Feature Layer
out_dataset_path
(可选)

The geodatabase in which the output feature dataset will be created.

Workspace
out_dataset_name
(可选)

The name of the feature dataset in the output geodatabase in which the color-coded layer feature classes will be created.

String

派生输出

名称说明数据类型
out_layer

A container for the output layer.

Group Layer
out_dataset

The new output feature dataset.

Feature Dataset

代码示例

ColorCodedLayer example (Python window)

The following Python window script demonstrates how to use the ColorCodedLayer function.

import arcpy
arcpy.env.baDataSource = "ONLINE;US;"
arcpy.ba.ColorCodedLayer("networth.mednw_cy", "CCL_NetWorth", "NATURAL_BREAKS", 5, "San_Francisco_County_BGs", "path to GDB", "SF_BGs)
ColorCodedLayer with Statistical Data Collection variable example (Python window)

The following Python window script demonstrates how to use the ColorCodedLayer function with Statistical Data Collection variables.

import arcpy
arcpy.env.baDataSource = "USA_ESRI_2018"
arcpy.ba.ColorCodedLayer(r"c:\users\<User ID>\documents\arcgis\projects\my_project\bayarea_proprietarydata.sdcx/sales_s01_sales", "sales_s01_sales Layer", "NATURAL_BREAKS", 5)

许可信息

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

相关主题