Show Navigation | Hide Navigation
You are here:
Geoprocessing tool reference > Coverage toolbox > Data Management toolset > Topology toolset > Tools

Clean (Coverage) (ArcInfo only)

Release 9.2
Last modified February 6, 2007
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Tools"


Related Topics

NOTE: This tool only works with an ArcInfo license and will only be available in ArcToolbox if you have installed ArcInfo Workstation.


Generates a coverage 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:


Learn more about how Clean works


Illustration

Clean illustration

Usage tips

Command line syntax
An overview of the Command Line window
Clean_arc <in_cover> {out_cover} {dangle_length} {fuzzy_tolerance} {POLY | LINE}

Parameter Explanation Data Type
<in_cover>

The coverage to be cleaned.

Coverage
{out_cover}

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}

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}

The minimum distance between coordinates in each Output Coverage.Learn more about how the Default Fuzzy Tolerance is Calculated

Double
{POLY | LINE}

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 parameters


Command line example

clean_arc c:\myData\zones c:\myData\zones # 0.25 POLY

Scripting syntax
About getting started with writing geoprocessing scripts
Clean_arc (in_cover, out_cover, dangle_length, fuzzy_tolerance, feature_type)

Parameter Explanation Data Type
in_cover (Required)

The coverage to be cleaned.

Coverage
out_cover (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 parameters


Script example

import arcgisscripting
gp = arcgisscripting.create()

gp.workspace = "c:/myData"
gp.toolbox = "arc"
gp.clean("zones", "zones", "#", "0.25", "POLY")

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.