This tool only works with an ArcInfo license and will only be available in ArcToolbox if you have installed ArcInfo Workstation.
Generates a with correct polygon or arc-node topology. To do this, Clean edits and corrects geometric coordinate errors, assembles arcs into polygons, and creates feature attribute information for each polygon or arc (that is, creates a PAT or AAT).
While processing, Clean:
- Finds intersections between arcs, splits the arcs, and codes the intersections as nodes (arc endpoints).
- Merges coordinates within the fuzzy tolerance of each other. Because the fuzzy tolerance actually moves arc vertices, understanding its relationship to coverage resolution is important.
- Creates the list of arcs that defines each polygon's boundary, numbers the nodes, and establishes the From-node and To-node for each arc as well as the internal polygon numbers to the left and right of each arc.
- Deletes dangling arcs that are shorter than the specified .
- Builds a polygon attribute table (PAT) or an arc attribute table (AAT) depending on the option used. It calculates the area and perimeter for each polygon and stores this information along with the polygon internal number and User-ID in the PAT. If the input coverage already has a PAT, the polygon's original internal number is used to join any additional items in the PAT to the output coverage PAT.
Learn more about how Clean works
Illustration

Clean_arc (in_cover, out_cover, dangle_length, fuzzy_tolerance, feature_type)
| Parameter |
Explanation |
Datatype |
| Input Coverage (Required) |
The coverage to be cleaned.
|
Coverage |
| Output Coverage (Optional) |
The coverage created by Clean. If the Input Coverage and the Output Coverage have the same name, the Input Coverage will be replaced. By default, the Input Coverage is replaced.
|
Coverage |
| Dangle Length (Optional) |
The minimum length allowed for dangling arcs in the Output Coverage. A dangling arc is an arc that has the same polygon internal number on its left and right sides and ends at a dangling node. Dangling arcs are removed for both the POLY and LINE options. If the Dangle Length is not provided, the dangle length is read from the coverage TOL file if the TOL file exists. Otherwise, dangle length is set to zero (the default).
|
Double |
| Fuzzy Tolerance (Optional) |
The minimum distance between coordinates in each Output Coverage.Learn more about how the Default Fuzzy Tolerance is Calculated
|
Double |
| Feature Type (Optional) |
Specifies whether to create polygon topology and a PAT or arc-node topology and an AAT. POLY is the default option. If POLY is used on a coverage that has an existing AAT, Clean will also automatically rebuild the AAT.
- POLY—Polygon topology and a PAT are created. If POLY is used on a coverage that has an existing AAT, Clean will also automatically rebuild the AAT. POLY is the default option.
- LINE—Arc-node topology and an AAT are created.
|
String |
Data types for geoprocessing tool parametersScript Example
import arcgisscripting
gp = arcgisscripting.create()
gp.workspace = "c:/myData"
gp.toolbox = "arc"
gp.clean("zones", "zones", "#", "0.25", "POLY")