求助:arcpy中面转栅格的代码,但是出的栅格图中没属性表
部分代码:
list_shapefiles = arcpy.ListFiles("*.shp")
valField = "nam"
assignmentType = "CELL_CENTER"
priorityField = "NONE"
cellSize = 10
output_path="E:/mushijieyi/images/"
for Features in list_shapefiles:
print Features
inFeatures =Features
out=output_path+inFeatures+".tif"
# Execute PolygonToRaster
arcpy.PolygonToRaster_conversion(inFeatures, valField, out,assignmentType, priorityField, cellSize)
部分代码:
list_shapefiles = arcpy.ListFiles("*.shp")
valField = "nam"
assignmentType = "CELL_CENTER"
priorityField = "NONE"
cellSize = 10
output_path="E:/mushijieyi/images/"
for Features in list_shapefiles:
print Features
inFeatures =Features
out=output_path+inFeatures+".tif"
# Execute PolygonToRaster
arcpy.PolygonToRaster_conversion(inFeatures, valField, out,assignmentType, priorityField, cellSize)