Dissolve Polygons

Running programmatically

Dissolves (aggregates) polygons based on user specified attributes. The resulting polygon data set does not contain multi-part polygons




Input Layer Dissolve field = "Dissolve"

dis_before.jpg (8691 bytes)

dis_tab_before.jpg (4488 bytes)

After Dissolve

dis_after_etgw.jpg (9917 bytes)

Running Programmatically

(Go to TOP)


Expression Explanation
Function Name DissolvePolygons
<input dataset> A String representing the input layer. Must be of Polygon type.
<output dataset> A String - the full name of the output layer.
{Dissolve Fields} A String representing a list (separated with ";") with the field names to be used for dissolving.
{Statistic Fields} A String representing a list (separated with ";") with the field names for which statistics will be created. Example: "Field1 Sum;Field2 Max;Field3 Min"
{Create Multiparts} A Boolean indicating whether the function will create multipart polygons.

Running the function

ETGWPath used in the table below is the  full path to ETGWRun.exe (E.G. "C:\Program Files\ETSpatial Techniques\ETGeo Wizards\ETGWRun.exe")

Language Syntax
Python subprocess.call([ETGWPath, "DissolvePolygons", "input dataset", "output dataset", "Dissolve Fields", "Statistic Fields", "Create Multiparts"])
.NET using ETGWRun.exe StartInfo.FileName = ETGWPath
StartInfo.Arguments = "DissolvePolygons" "input dataset" "output dataset" "Dissolve Fields" "Statistic Fields" "Create Multiparts"
.NET using ETGWOutX.dll DissolvePolygons(input dataset, output dataset, Dissolve Fields, Statistic Fields, Create Multiparts)
ArcPy arcpy.DissolvePolygons(input dataset, output dataset, "Dissolve Fields", "Statistic Fields", "Create Multiparts")


(Go to TOP)