Dissolve By Attribute Range (Business Analyst)
概要
Aggregates and dissolves features based on specified attributes.
使用法
-
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.
構文
パラメータ | 説明 | データ タイプ |
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.
| Boolean |
Donut (オプション) |
Creates nonoverlapping concentric rings, or donut bands.
| Boolean |
コード サンプル
# 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\ArcGIS\Desktop10.0\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)