标签:import mem class 处理 body key 处理工具 process tin
在 Python 脚本中,in_memory 工作空间仅对地理处理工具有效;它不是可以写入任何数据的通用虚拟目录。
您可以按以下代码示例所示使用 in_memory 工作空间。
import arcpy
# Set the geoprocessing workspace
arcpy.env.workspace = r"C:\Data\Habitat.gdb"
# Buffer a Roads layer, writing output to in_memory
arcpy.Buffer_analysis("Roads", "in_memory/Buffers", 1000)
# Erase the buffers from a Vegetation layer
arcpy.Erase_analysis("Vegetation", "in_memory/Buffers", "in_memory/Erased")
# Dissolve the in_memory output of Erase to make a final output
arcpy.Dissolve_analysis("in_memory/Erased", "FinalOutput")
标签:import mem class 处理 body key 处理工具 process tin
原文地址:https://www.cnblogs.com/gisoracle/p/10353594.html