多面体覆盖区 (3D Analyst)

摘要

创建多边形覆盖区用以表示多面体要素的二维区域。

插图

多面体覆盖区

使用情况

  • 输出覆盖区的字段将与输入要素的字段相同,具体包含以下字段:

    • Z_Min - 多面体要素的最小 Z 值。
    • Z_Max - 多面体要素的最大 Z 值。
  • 如果结构由属性表中具有通用标识符的多个要素组成,则使用组字段参数。

参数

标注说明数据类型
输入要素类

将要生成覆盖区的多面体要素。

Feature Layer
输出要素类

生成的覆盖区面要素类。

Feature Class
组字段
(可选)

该字段用于合并多面体要素,以便构成同一覆盖区面。

Field

arcpy.ddd.MultiPatchFootprint(in_feature_class, out_feature_class, {group_field})
名称说明数据类型
in_feature_class

将要生成覆盖区的多面体要素。

Feature Layer
out_feature_class

生成的覆盖区面要素类。

Feature Class
group_field
(可选)

该字段用于合并多面体要素,以便构成同一覆盖区面。

Field

代码示例

MultiPatchFootprint 示例 1(Python 窗口)

下面的示例演示了如何在 Python 窗口中使用此工具。

arcpy.env.workspace = "C:/data"
arcpy.MultiPatchFootprint_3d("multipatch.shp","multipatch_footprint.shp")
MultiPatchFootprint 示例 2(独立脚本)

下面的示例演示了如何在独立 Python 脚本中使用此工具。

'''****************************************************************************
Name: MultiPatchFootprint Example
Description: Creates footprint polygons for all multipatches in a workspace.
****************************************************************************'''
import arcpy

# Set environment settings
arcpy.env.workspace = 'C:/data'
fcList = arcpy.ListFeatureClasses()
if fcList:
    for fc in fcList:
        # Determine if the feature class is a multipatch
        desc = arcpy.Describe(fc)
        if desc.shapeType is "MultiPatch":
            outPoly = "{0}_Footprint.shp".format(desc.baseName)
            #Execute MultiPatchFootprint
            arcpy.ddd.MultiPatchFootprint(fc, outPoly)

许可信息

  • Basic: 是
  • Standard: 是
  • Advanced: 是

相关主题