Geographic Information Systems Asked on December 16, 2020
Durring execution of clip in arcpy, an error has occurred. It is showing ExecuteError: ERROR 000582: Error occurred during execution.
import arcpy
arcpy.env.workspace = (r"L:ArcpyDatavector_dataselected_district")
rasterlayer = (r"L:ArcpyDataMosaic")
output = (r"L:ArcpyDataclip")
vector_layer = arcpy.ListFeatureClasses()
for vectordata in vector_layer:
# the first part of the file name before extension (if present) then add .tif
output = vectordata.split('_')[0] + '.tif'
arcpy.Clip_management(rasterlayer, "", output, vectordata, "0", "ClippingGeometry", "NO_MAINTAIN_EXTENT")
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP