面体积 (3D Analyst)

摘要

计算面和 terrain 或 TIN 表面之间的体积和表面积。

用法

语法

PolygonVolume_3d (in_surface, in_feature_class, in_height_field, {reference_plane}, {out_volume_field}, {surface_area_field}, {pyramid_level_resolution})
参数说明数据类型
in_surface

输入 terrain 或 TIN 表面。

Tin Layer; Terrain Layer
in_feature_class

输入面要素类。

Feature Layer
in_height_field

面属性表中的字段,用于定义确定体积计算中使用的参考平面高度。

String
reference_plane
(可选)

确定如何计算体积和表面积。

  • ABOVE计算面的参考平面高度以上的体积和表面积。
  • BELOW计算面的参考平面高度以下的体积和表面积。这是默认设置。
String
out_volume_field
(可选)

输出中的字段名称,其包含已在分析中计算的体积。默认值是 Volume。

String
surface_area_field
(可选)

输出中的字段名称,其包含已在分析中计算的表面积。默认值是 SArea。

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

代码示例

面体积 (PolygonVolume) 示例 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.PolygonVolume_3d("sample.gdb/featuredataset/terrain", "polygon.shp", "<None>", "ABOVE", "Volume", "SArea", "5")
面体积 (PolygonVolume) 示例 2(独立脚本)

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

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

# Import system modules
import arcpy
from arcpy import env

# Obtain a license for the ArcGIS 3D Analyst extension
arcpy.CheckOutExtension("3D")

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


# Set Local Variables
inSurface = "sample.gdb/featuredataset/terrain"
inPoly = "floodplain_100.shp"
zField = "Height"
refPlane = "BELOW"
volFld = "Volume"
sAreaFld = "SArea"

#Execute PolygonVolume
arcpy.PolygonVolume_3d(inSurface, inPoly, zField, refPlane, volFld, sAreaFld)

环境

相关主题

许可信息

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

7/10/2012