面插值为多面体 (Multipatch) (3D Analyst)

摘要

根据面要素类和栅格、terrain 或 TIN 表面创建与表面一致的多面体要素。

来自输入要素的属性被复制到输出。会为每个要素计算平面面积和表面面积,并将它们作为属性添加到输出中。

了解有关“面插值为多面体”(3D Analyst) 工作原理的详细信息

用法

语法

InterpolatePolyToPatch_3d (in_surface, in_feature_class, out_feature_class, {max_strip_size}, {z_factor}, {area_field}, {surface_area_field}, {pyramid_level_resolution})
参数说明数据类型
in_surface

输入不规则三角网 (TIN) 或 terrain 数据集表面。

Terrain Layer; TIN Layer
in_feature_class

输入面要素类。

Feature Layer
out_feature_class

输出多面体要素类。

Feature Class
max_strip_size
(可选)

控制用于创建单个三角条带的点的最大数。请注意,每个多面体通常由多个条带组成。默认值为 1,024。

Long
z_factor
(可选)

The factor by which elevation values will be multiplied. This is typically used to convert Z linear units that match those of the XY linear units. The default is 1, which leaves elevation values unchanged.

Double
area_field
(可选)

输出字段的名称,其中包含所得多面体的平面(或 2D)面积。

String
surface_area_field
(可选)

输出字段的名称,其中包含所得多面体的 3D 面积。该面积考虑到了表面的波动。如果表面是平的,则该面积与平面面积两者相等,否则它总是大于平面面积。

String
pyramid_level_resolution
(可选)

The z-tolerance or window size resolution of the terrain pyramid level that will be used by this tool. The default is 0, or full resolution.

Double

代码示例

InterpolatePolygonToMultipatch 示例 1(Python 窗口)

The following sample demonstrates the use of this tool in the Python window:

import arcpy
from arcpy import env

arcpy.CheckOutExtension("3D")
env.workspace = "C:/data"
arcpy.InterpolatePolyToPatch_3d("sample.gdb/featuredataset/terrain", "polygon.shp", "out_multipatch.shp", 1024, 1, "Area", "SArea", 5)
InterpolatePolygonToMultipatch 示例 2(独立脚本)

The following sample demonstrates the use of this tool in a stand-alone Python script:

'''****************************************************************************
Name: InterpolatePolyToPatch Example
Description: This script demonstrates how to use the 
             InterpolatePolyToPatch tool.
****************************************************************************'''

# Import system modules
import arcpy
from arcpy import env

arcpy.CheckOutExtension("3D")

# Set environment settings
env.workspace = "C:/data"

# Set Local Variables
inTerrain = "sample.gdb/featuredataset/terrain"
inPoly = "polygon.shp"
outMP = arcpy.CreateUniqueName("out_multipatch.shp")

#Execute InterpolatePolyToPatch
arcpy.InterpolatePolyToPatch_3d(inTerrain, inPoly, outMP, 1024, 1, "Area", "SArea", 5)

环境

相关主题

许可信息

ArcView: 需要 3D Analyst
ArcEditor: 需要 3D Analyst
ArcInfo: 需要 3D Analyst

7/10/2012