Merge Connected FeaturesΒΆ
Two or multiple polygons that are connected through a shared point may be considered as a single feature. This tool is used to merge (or dissolve) these connected polygons into larger polygons. The tool identifies those features that are connected through shared points and then generates a new featureclass after merging these connected features.
The new featureclass can then be used as input to the Connect Nearby Linear Features Tool and the Connect Nearby Linear HF Features Tool for further connection of linear nearby (but not spatially connected) features. The new featureclass can also be directly used as input to the AddAttributes toolset and the ClassificationFeatures toolset to generate attributes and assign feature types.
Note that this tool can be used for both bathymetric high and bathymetric low features.
1from arcpy import env
2from arcpy.sa import *
3arcpy.CheckOutExtension("Spatial")
4
5# import the python toolbox
6arcpy.ImportToolbox("C:/semi_automation_tools/User_Guide/Tools/Accessory_Tools.pyt")
7
8env.workspace = 'C:/semi_automation_tools/testSampleCode/Gifford.gdb'
9env.overwriteOutput = True
10
11# specify input and output parameters of the tool
12inFeat = 'po10_1_05std_300000m2_BL'
13mergedFeatPoint = 'po10_1_05std_300000m2_BL_joinedPoint'
14
15
16# execute the tool with user-defined parameters
17arcpy.AccessoryTools.Merge_Connected_Features_Tool(inFeat,mergedFeatPoint)