I'm trying to use polygons in arcpy. The polygons are stored in a shapefile. When running the following:
import arcpy gdb = 'path//to//gbd' inshape = os.path.join(folder,'Ameland_1968.shp') poly = os.path.join(gdb,'test') arcpy.MakeFeatureLayer_management (inshape, poly)
I get this error:
ExecuteError: ERROR 000229: Cannot open inshape **(red: this path is typed out) Failed to execute (MakeFeatureLayer).
What is the problem? Arcpy should be able to run this line with shapefiles right? I'm actually trying to run a part of a script that's using arcpy but the data is in shapefiles. How to convert these?
edit: this is my original code
poly_shape = 'D:\\ARNO\\Analysis\\ArcGIS\\ArcPyScripts\\Data\\straight_bars_2\\Ameland\\Ameland_1965.shp' poly = 'D:\\ARNO\\Analysis\\ArcGIS\\ArcPyScripts\\Data\\test.gdb\\Ameland65' arcpy.MakeFeatureLayer_management (poly_shape, poly)