ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Dissolve By Attribute Range

  • Summary
  • Usage
  • Syntax
  • Code Sample
  • Environments
  • Licensing Information

Summary

Aggregates and dissolves features based on specified attributes.

Learn more about how Dissolve By Attribute Range works

Usage

  • 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.

Syntax

DissolveByAttributeRange_ba (InputFeatureLayer, IDField, ContoursValues, OutputFeatureClass, {SelectedFeaturesOnly}, {Donut})
ParameterExplanationData Type
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
(Optional)

Uses selected features to dissolve by attribute.

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

Creates nonoverlapping concentric rings, or donut bands.

  • True —Creates 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.
  • False —Creates concentric rings.
Boolean

Code Sample

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.3\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)

Environments

This tool does not use any geoprocessing environments

Licensing Information

  • ArcGIS for Desktop Basic: Requires Business Analyst
  • ArcGIS for Desktop Standard: Requires Business Analyst
  • ArcGIS for Desktop Advanced: Requires Business Analyst

Related Topics

  • An overview of the Trade Areas toolset
Feedback on this topic?

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

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

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal