Skip to content

Instantly share code, notes, and snippets.

@cageyjames
Created February 7, 2012 04:12
Show Gist options
  • Save cageyjames/1757120 to your computer and use it in GitHub Desktop.
Save cageyjames/1757120 to your computer and use it in GitHub Desktop.
Clip with ArcPy
import arcpy
from arcpy import env
env.workspace = "c:/workspace"
# variables
in_features = "soils.shp"
clip_features = "study_boundary.shp"
out_feature_class = "c:/workspace/output/study_area_soils.shp"
xy_tolerance = ""
# Execute Clip
arcpy.Clip_analysis(in_features, clip_features, out_feature_class, xy_tolerance)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment