arcpy吧 关注:49贴子:111
  • 2回复贴,共1

求助:arcpy中面转栅格的代码,但是出的栅格图中没属性表

只看楼主收藏回复

求助: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)


1楼2020-09-24 09:53回复
    切换成unique value显示就有了


    IP属地:澳大利亚3楼2022-12-13 15:59
    收起回复