Dissolve By Attribute Range (Business Analyst)

许可等级:BasicStandardAdvanced

摘要

Aggregates and dissolves features based on specified attributes.

Learn more about how Dissolve By Attribute Range works

用法

语法

DissolveByAttributeRange_ba (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.

Double
OutputFeatureClass

The feature class that will contain the dissolved attributes.

Feature Class
SelectedFeaturesOnly
(可选)

Uses selected features to dissolve by attribute.

  • TrueDissolves selected features.
  • FalseDissolves all features.
Boolean
Donut
(可选)

Creates nonoverlapping concentric rings, or donut bands.

  • TrueCreates output polygons that are donut rings. For example, if three radii (1, 2, and 3 miles) are entered, three output bands would be created with 0–1-, 1–3-, and 3–5-mile rings.
  • FalseCreates 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.AddToolbox("C:\Program Files (x86)\ArcGIS\Desktop10.2\Business Analyst\ArcToolbox\Toolboxes\Business Analyst Tools.tbx")
 
try:
# Acquire extension license 
  arcpy.CheckOutExtension("Business")
 
# Define input and output parameters for the Dissolve by Attribute Range tool
  Input = "C:/temp/Boundary.shp"
  Dissolve = "TOTPOP_CY"
  OutPath = "C:/temp/Output_Contours.shp"
 
# Create trade areas by dissolving attributes
  arcpy.DissolveByAttributeRange_ba(Input, Dissolve, "250;500;1000;2000", OutPath)
 
# Release extension license 
  arcpy.CheckInExtension("Business") 
 
except:
  print arcpy.GetMessages(2)

环境

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

相关主题

许可信息

ArcGIS for Desktop Basic: 需要 Business Analyst
ArcGIS for Desktop Standard: 需要 Business Analyst
ArcGIS for Desktop Advanced: 需要 Business Analyst
4/27/2014