Quantcast
Channel: Question and Answer » arcpy
Viewing all articles
Browse latest Browse all 767

save as Layer script not working

$
0
0

I’ve created script in Python for ArcGIS to save shape file as layer file..the code throws an error

ERROR 000732: Input Layer: Dataset D:core i 5 datasymon assignmentSwatclippedbuffer.shp does not exist or is not supported

Here is my code:

import arcpy
from arcpy import env 
env.workspace = "D:/core i 5 data/symon assignment/Swat/clipped"
buf= "D:core i 5 datasymon assignmentSwatclippedbuffer.shp"
ou2= "D:core i 5 datasymon assignmentSwatclippedlayer1.lyr"
arcpy.SaveToLayerFile_management(buf, ou2, "ABSOLUTE")

Viewing all articles
Browse latest Browse all 767

Latest Images

Trending Articles



Latest Images