AnsweredAssumed Answered

No shapefiles created when using arcpy.Clip_analysis

Question asked by firelight_1 on Jun 12, 2018

I am trying to clip one polygon .shp to the extent of another polygon .shp. My script seems to run fine, with no errors recorded, but then when I go to the folder location, no files have been created. It is driving me crazy!! Any help would be greatly appreciated as to why this might be. I am attaching the script here: 

 

import arcpy
from arcpy import *

 

#Set geoprocessing environments
arcpy.env.scratchWorkspace = r"C:\\Users\Lauren Tekano\\Documents\\Data\\SIB\\SIB103\\GIS\\Scripts\\Scratch\\SIB103_TST.gdb"
arcpy.env.workspace = r"C:\\Users\Lauren Tekano\\Documents\\Data\\SIB\\SIB103\\GIS"

 

#Local variables
#input variables
Data = r"C:\\Users\\Lauren Tekano\\Documents\\Data\\SIB\\SIB103\\GIS\\Shapefiles\\Interviews\\Randbuff1km\\SIB_30MAY2018_AllData_1KMCopy.shp"
North_Route_25KM = r"C:\\Users\\Lauren Tekano\Documents\\Data\\SIB\\SIB103\\GIS\\Industry\\Shapefiles\\Study Areas\\SIB103_15FEB2018_25km_Routes_buffer.shp"

 

#Output variables
TUS_Data_North_25KM = r"C:\\Users\\Lauren Tekano\\Documents\\Data\\SIB\\SIB103\\GIS\\Scripts\\Scratch\\SIB103_TST.gdb\\TST_TUS_Data_North_25KM.shp"

 

#Geoprocessing functions

 

#1: Clip All Data files to the 25KM North Route buffer

arcpy.Clip_analysis(Data, North_Route_25KM, TUS_Data_North_25KM)

Outcomes