3DS文件导出MultiPatch

使用脚本批量的将3DS文件导出到ArcGIS中的Multipatch。

代码如下:

3DS文件导出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
3DS文件导出MultiPatch

图片如下:

3DS文件导出MultiPatch

3DS文件导出MultiPatch

上一篇:代码混淆和baksmali,smali反编译研究


下一篇:@property (nonatomic,retain)中的nonatom和retain的意思