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

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

Dissolve By Attribute Range

获得 Business Analyst 许可后可用。

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

描述

Aggregates and dissolves features based on specified attributes.

Learn more about how Dissolve By Attribute Range works

使用方法

  • The spatial reference of the output feature class will be the same as the layer containing attributes.

  • Current map layers can be used to define input features. When using layers, only the currently selected features are used in the dissolve operation.

  • The dissolved fields are written to the output feature class table.

  • One common use of this tool is to take the output of a thematic map and dissolve the features as a single polygon or feature.

  • You can use this tool to dissolve the output from Huff Models to create probabilistic trade areas based on probability ranges.

语法

arcpy.ba.DissolveByAttributeRange(InputFeatureLayer, IDField, ContoursValues, OutputFeatureClass, {SelectedFeaturesOnly}, {Donut})
参数说明数据类型
InputFeatureLayer

Layer containing the values that will be dissolved.

Feature Layer
IDField

The attribute field containing the values to be dissolved.

Field
ContoursValues
[ContoursValues,...]

The range for each attribute to be dissolved. If using the Python function call, you can enter multiple values separated by semicolons (e.g. "250;500;1000;2000").

Double
OutputFeatureClass

The feature class that will contain the dissolved attributes.

Feature Class
SelectedFeaturesOnly
(可选)

Uses selected features to dissolve by attribute.

  • True —Dissolves selected features.
  • False —Dissolves all features.
Boolean
Donut
(可选)

Creates non-overlapping concentric rings, or donut bands.

  • True —Creates output polygons that are donut rings. For example, if three radii (1, 3, and 5 miles) are entered, three output bands would be created with 0–1, 1–3, and 3–5 mile rings.
  • False —Creates concentric rings.
Boolean

代码示例

DissolveByAttributeRange Example (Stand-alone Script)
# Name: DissolveByAttributeRange.py
# Description: Dissolves the boundaries of a trade area using current year total households
# Author: Esri

# Import system modules
import arcview
import arcpy

arcpy.ImportToolbox(r"C:\Program Files (x86)\ArcGIS\Desktop10.8\Business Analyst\ArcToolbox\Toolboxes\Business Analyst Tools.tbx")

# Acquire extension license 
arcpy.CheckOutExtension("Business")
 
# Define input and output parameters for the Dissolve by Attribute Range tool
InputFeatureLayer = "C:/temp/Boundary.shp"
IDField = "TOTPOP_CY"
ContoursValues = "250;500;1000;2000"
OutputFeatureClass = "C:/temp/Output_Contours.shp"
SelectedFeaturesOnly = "false"
Donut = "false"

# Create trade areas by dissolving attributes
arcpy.DissolveByAttributeRange_ba(InputFeatureLayer, 
						IDField, 
						ContoursValues , 
						OutputFeatureClas, 
						SelectedFeaturesOnly, 
						Donut)
 
# Release extension license 
arcpy.CheckInExtension("Business")

环境

此工具不使用任何地理处理环境。

许可信息

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

相关主题

  • An overview of the Trade Areas toolset

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS

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

关于 Esri

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