您的位置:首页 > 其它

3DS文件导出MultiPatch

2014-01-21 17:36 267 查看
使用脚本批量的将3DS文件导出到ArcGIS中的Multipatch。

代码如下:

import arcpy
from arcpy import env
import os
arcpy.CheckOutExtension("3D")
env.workspace = "E:/Scene3DData/All3ds"
try:
Open3DSFile = arcpy.ListFiles("*.3ds")
for file in Open3DSFile:
strFullName = os.path.basename(file)
strFileName  = os.path.splitext(file)[0]
strFileExc = os.path.splitext(file)[1]
strShpName = strFileName+".shp"
#设置环境-》高级地理数据库-》z的输出范围 为了后面能够进行修改
arcpy.env.ZDomain = "-9999999 9999999"
arcpy.Import3DFiles_3d(strFullName, strShpName, False, "", False)
print strShpName
except Exception as e:
# Returns any other error messages
print e.message


图片如下:

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: