Dissolve Boundaries (GeoAnalytics Desktop)

Summary

Finds polygons that intersect or have the same field values and merges them to form a single polygon.

Which boundaries are merged can be controlled by specifying one or more fields. For example, if you have a layer of counties and each county has a State_Name field, you can dissolve boundaries using the State_Name field. Adjacent counties will be merged if they have the same value for State_Name. The result is a layer of state boundaries.

Illustration

Dissolve Boundaries tool illustration

Usage

  • The Input Layer features must have polygon geometry. The dissolved output features will always be polygons.

  • There are two types of polygons that can have their boundaries dissolved: polygons that intersect and polygons that have the same field value.

    Polygon features that have intersecting boundaries will be dissolved by default. Optionally, you can use the Dissolve Field(s) parameter to dissolve intersecting polygons that have one or more of the same field values.

    For example, if you have a layer of study areas with a Soil_Type field, you can dissolve boundaries based on the attributes of the Soil_Typefield. Study areas will be merged if they have the same value for Soil_Type. The result is a layer of study areas by soil type. If two or more fields are specified, the input features must have the same value for each for the boundary to be dissolved.

  • The attributes of the features that become aggregated by dissolve can be summarized or described using a variety of statistics in the Summary Fields parameter. The statistic used to summarize attributes is added to the output feature class as a single field with the naming standard of statistic type + underscore + input field name. For example, if the SUM statistic is used on a field named POP, the output will have a field named SUM_POP.

  • Output from the Dissolve Boundaries tool can include multipart or single part features. A multipart feature is defined as one feature that is broken up into noncontiguous parts. For example, the state of Hawaii can be considered a multipart feature because its separate geometric parts are classified as a single state. The Create multipart features parameter offers two options for creating multipart or single part output:

    • True (checked)—Multipart features will be created in the output if applicable.
    • False (unchecked)—Only single part features will be created in the output. This is the default.

  • The following table outlines how the Create multipart features parameter operates with the dissolve options:

    Dissolve methodMultipart is false (default)Multipart is true

    Dissolve Field(s) is not specified (default).

    All features dissolved with multipart false

    Three features are created when all values are dissolved and multipart is false. Only overlapping features are dissolved.

    All features dissolved with multipart true

    One feature is created when all values are dissolved and multipart is true. When you select this option, the result will always be one feature.

    Dissolve Field(s) is specified.

    Features with like values dissolved with multipart false

    Four features are created when the dissolve is applied based on the field (here, the field is the color of input points). Only overlapping features with the same value of the specified fields are dissolved.

    Features with like values dissolved with multipart true

    Two features are created when the dissolve is applied based on the field (here, the field is the color of input points) and multiparts are allowed. Values with the same field value will always be a single feature.

  • This geoprocessing tool is powered by Spark. Analysis is completed on your desktop machine using multiple cores in parallel. See Considerations for GeoAnalytics Desktop tools to learn more about running analysis.

  • When running GeoAnalytics Desktop tools, the analysis is completed on your desktop machine. For optimal performance, data should be available on your desktop. If you are using a hosted feature layer, it is recommended that you use ArcGIS GeoAnalytics Server. If your data isn't local, it will take longer to run a tool. To use your ArcGIS GeoAnalytics Server to perform analysis, see GeoAnalytics Tools.

Parameters

LabelExplanationData Type
Input Features

The layer containing the polygon features that will be dissolved.

Feature Layer
Output Feature Class

A new feature class with dissolved boundaries.

Feature Class
Create Multipart Features
(Optional)

Specifies whether multipart features will be created in the output feature class.

  • Checked—Multipart features will be created.
  • Unchecked—Multipart features will not be created. Individual features will be created for each part instead. This is the default.
Boolean
Dissolve by Field Value(s)
(Optional)

Specifies whether features with the same field values will be dissolved.

  • Unchecked—Polygons that share a common border (that is, they are adjacent) or polygons that overlap will be dissolved into one polygon. This is the default.
  • Checked—Polygons that have the same field value or values will be dissolved.

Boolean
Dissolve Field(s)

The field or fields that will be used to dissolve like features. Features with the same value for each field will be dissolved.

Field
Summary Fields

The statistics that will be calculated on specified fields.

  • Count—The number of nonnull values. It can be used on numeric fields or strings. The count of [null, 0, 2] is 2.
  • Sum—The sum of numeric values in a field. The sum of [null, null, 3] is 3.
  • Mean—The mean of numeric values. The mean of [0, 2, null] is 1.
  • Min—The minimum value of a numeric field. The minimum of [0, 2, null] is 0.
  • Max—The maximum value of a numeric field. The maximum value of [0, 2, null] is 2.
  • Standard Deviation—The standard deviation of a numeric field. The standard deviation of [1] is null. The standard deviation of [null, 1,1,1] is null.
  • Variance—The variance of a numeric field in a track. The variance of [1] is null. The variance of [null, 1, 1, 1] is null.
  • Range—The range of a numeric field. This is calculated as the minimum value subtracted from the maximum value. The range of [0, null, 1] is 1. The range of [null, 4] is 0.
  • Any—A sample string from a field of type string.

Value Table

arcpy.gapro.DissolveBoundaries(input_layer, out_feature_class, {multipart}, {dissolve_fields}, fields, summary_fields)
NameExplanationData Type
input_layer

The layer containing the polygon features that will be dissolved.

Feature Layer
out_feature_class

A new feature class with dissolved boundaries.

Feature Class
multipart
(Optional)

Specifies whether multipart features will be created in the output feature class.

  • MULTI_PARTMultipart features will be created.
  • SINGLE_PARTMultipart features will not be created. Individual features will be created for each part instead. This is the default.
Boolean
dissolve_fields
(Optional)

Specifies whether features with the same field values will be dissolved.

  • NO_DISSOLVE_FIELDSPolygons that share a common border (that is, they are adjacent) or polygons that overlap will be dissolved into one polygon. This is the default.
  • DISSOLVE_FIELDSPolygons that have the same field value or values will be dissolved.
Boolean
fields
[fields,...]

The field or fields that will be used to dissolve like features. Features with the same value for each field will be dissolved.

Field
summary_fields
[summary_fields,...]

The statistics that will be calculated on specified fields.

  • Count—The number of nonnull values. It can be used on numeric fields or strings. The count of [null, 0, 2] is 2.
  • Sum—The sum of numeric values in a field. The sum of [null, null, 3] is 3.
  • Mean—The mean of numeric values. The mean of [0, 2, null] is 1.
  • Min—The minimum value of a numeric field. The minimum of [0, 2, null] is 0.
  • Max—The maximum value of a numeric field. The maximum value of [0, 2, null] is 2.
  • Standard Deviation—The standard deviation of a numeric field. The standard deviation of [1] is null. The standard deviation of [null, 1,1,1] is null.
  • Variance—The variance of a numeric field in a track. The variance of [1] is null. The variance of [null, 1, 1, 1] is null.
  • Range—The range of a numeric field. This is calculated as the minimum value subtracted from the maximum value. The range of [0, null, 1] is 1. The range of [null, 4] is 0.
  • Any—A sample string from a field of type string.

The statistics that will be calculated on specified fields.

  • COUNT—The number of nonnull values. It can be used on numeric fields or strings. The count of [null, 0, 2] is 2.
  • SUM—The sum of numeric values in a field. The sum of [null, null, 3] is 3.
  • MEAN—The mean of numeric values. The mean of [0,2, null] is 1.
  • MIN—The minimum value of a numeric field. The minimum of [0, 2, null] is 0.
  • MAX—The maximum value of a numeric field. The maximum value of [0, 2, null] is 2.
  • STDDEV—The standard deviation of a numeric field. The standard deviation of [1] is null. The standard deviation of [null, 1,1,1] is null.
  • VAR—The variance of a numeric field in a track. The variance of [1] is null. The variance of [null, 1,1,1] is null.
  • RANGE—The range of a numeric field. This is calculated as the minimum value subtracted from the maximum value. The range of [0, null, 1] is 1. The range of [null, 4] is 0.
  • ANY—A sample string from a field of type string.

Value Table

Code sample

DissolveBoundaries example (stand-alone script)

The following stand-alone script demonstrates how to use the DissolveBoundaries function.

# Name: Dissolve_County_Boundaries.py
# Description: Dissolve county features based on common state name attributes
 
# Import system modules
import arcpy

arcpy.env.workspace = "C:/data/Boundaries.gdb"

# Set local variables
inputLayer = "https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA_counties/FeatureServer/0"
outputName = "USA_State_Boundaries"
statistics = [["population", "SUM"]]
  
# Run DissolveBoundaries using "STATE" as the Dissolve Field
arcpy.gapro.DissolveBoundaries(inputLayer, outputName, "SINGLE_PART",
                               "DISSOLVE_FIELDS", "STATE", statistics)

Licensing information

  • Basic: No
  • Standard: No
  • Advanced: Yes

Related topics