Skip to content

Instantly share code, notes, and snippets.

@talllguy
Forked from cageyjames/clip.py
Created November 29, 2013 13:40
Show Gist options
  • Save talllguy/7705827 to your computer and use it in GitHub Desktop.
Save talllguy/7705827 to your computer and use it in GitHub Desktop.
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