ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Clip

Available with Advanced license.

  • Summary
  • Illustration
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

Uses the outside polygon boundary of the clip coverage to cookie-cut features and attributes from the input coverage.

Learn more about how Clip works

Illustration

Clip illustration

Usage

  • A fuzzy tolerance value of zero will not be accepted by CLIP.

  • The Clip Coverage must have polygon topology.

  • When the input coverage contains linear data belonging to different planar graphs, the data will be maintained in the output coverage. For example, with coincident or colinear arcs, such as arcs representing utility cables at different levels or a road following a stream, the coincident and colinear line segments will be preserved. However, additional vertices may be inserted. In the case of intersecting arcs, such as a road passing over a stream, nodes will not be inserted at the apparent intersection.

  • Boundaries of interior polygons in the Clip Coverage are not used in CLIP. Any Clip Coverage polygon whose internal number is greater than one is considered inside the Clipping window.

  • The User-ID for each feature will be the same in output coverage as it is in input coverage.

  • When clipping polygons, new label points for polygons are only generated when necessary. Each old polygon keeps its original label point position if the label is within the clipping boundary.

  • Annotation is saved if its lower left starting point falls within the clipping polygon.

  • New nodes created on the clipping boundary have their attributes set to zero.

  • Route systems are maintained for LINE, NET, LINK, and RAW options but ignored on the POLY option. Route systems are duplicated for arcs split into multiple pieces and eliminated for eliminated arcs. CLIP maintains all route system subclasses.

  • Route systems are duplicated for arcs split into multiple pieces and eliminated for removed arcs. The RAT<subclass>-ID item is the unique route identifier and is used to remove duplicates. If you need to maintain all the user-defined attributes, make sure all the route IDs are unique before running CLIP; otherwise, some user-defined attributes may be lost.

  • When all the regions are removed, the region subclasses are maintained as empty subclasses.

  • Region subclasses of the input coverage are maintained with the POLY and NET options. Regions in the input coverage are clipped in the output coverage by the extent of the Clip Coverage.

  • The output coverage tics are copied from the input coverage.

  • Annotation features from the input coverage are clipped and saved in the output coverage.

  • If an NAT exists in the input coverage, it will be updated in the output coverage. New nodes will have their attributes set to zero.

  • The output coverage inherits these data model contents from the input coverage:

    • Feature classes
    • Feature attribute table items
    • User-IDs
    • Tics
    • Annotation
    • Node attribute table
    • Projection file

  • The coordinate precision of each output coverage is determined by the current processing rule as set by the Derived Precision environment setting. If the processing rule has not been established during the current session, the output coverages will be in the same precision as the input coverage.

  • Projection files will be compared for similarity using the level of comparison specified with the Compare Projections environment setting.

Syntax

arcpy.arc.Clip(in_cover, clip_cover, out_cover, {feature_type}, {fuzzy_tolerance})
ParameterExplanationData Type
in_cover

The coverage containing features to be clipped.

Coverage
clip_cover

The coverage whose outer polygon defines the clipping region.

Coverage
out_cover

The coverage to be created. The output coverage cannot already exist.

Coverage
feature_type
(Optional)

The feature class to be clipped:

  • POLY —Polygons and region subclasses are clipped and a PAT is saved. Label points for remaining polygons are moved only if their original location falls outside the clipping boundary. Route systems are ignored.
  • LINE —Arcs are clipped, and an AAT is saved. Route systems are maintained.
  • POINT —Points are clipped, and a PAT is saved.
  • NET —Polygons and arcs are clipped, and their PAT and AAT are saved. Route systems and regions are maintained and clipped.
  • LINK —Arcs and points are clipped, and their AAT and PAT are saved. Route systems are maintained.
  • RAW —Points, arcs, and annotation in a coverage with or without topology (no attribute files) are clipped. Route systems are maintained, but regions, PAT, and AAT are not saved.
String
fuzzy_tolerance
(Optional)

The minimum distance between coordinates in the output coverage. By default, the minimum fuzzy tolerance value from the input coverage and erase coverage is used.

Learn more about how the default fuzzy tolerance is calculated

Double

Code sample

Clip example (stand-alone script)

The following stand-alone script demonstrates how to create a new coverage that contains the clipped out area of a larger coverage.

# Name: Clip_Example.py
# Description: Clips a subset out of a polygon coverage.
# Requirements: ArcInfo Workstation

# Import system modules
import arcpy
from arcpy import env

# Set environment settings
env.workspace = "C:/data"

# Set local variables
inCover = "tongass1"
clipCover = "tong_basin4"
outCover = "C:/output/basin4"
featureType = "POLY"

# Execute Clip
arcpy.Clip_arc(inCover, clipCover, outCover, featureType, "")

Environments

  • Current Workspace
  • Level Of Comparison Between Projection Files
  • Precision For Derived Coverages
  • Precision For New Coverages
  • Scratch Workspace

Licensing information

  • Basic: No
  • Standard: No
  • Advanced: Requires ArcInfo Workstation installed

Related topics

  • An overview of the Extract toolset
  • An overview of the Extract toolset

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal