arcpy.3d.EditTin(in_tin, in_features, {constrained_delaunay})
|
名称
|
说明
|
数据类型
|
|
in_tin
|
要处理的 TIN 数据集。
|
TIN Layer
|
|
in_features
[[in_features, height_field, tag_value, SF_type, use_z],...]
|
输入要素以及定义如何将其添加到 TIN 的相关属性。
值表列:
Input Features—The features that will be added to the TIN.
Height Field—The field from the input's attribute table that will provide the elevation for its features. The z- or m-values in the Shape field can be used along with any numeric field. Choosing the <None> option will result in the feature's elevation being interpolated from its surrounding 3D measurements.
Tag Field—A numeric attribute will be assigned to the TIN's data elements using values obtained from an integer field in the input feature's attribute table.
Type—The input feature's role in defining the TIN surface. The available options depend on the geometry of the input features. For line- and polygon-based surface feature types, the hard and soft designations for the surface feature type impact the way the line or polygon boundary is handled when interpolating a raster surface from the TIN dataset when using natural neighbor interpolation. A hard surface feature type represents a border with a sharp discontinuity in elevation, such as the edge of a cliff, a wall, or a curb on the side of the road. A soft surface feature type represents a border where the elevation is more smoothly defined.
Mass_Points—Elevation measurements will be incorporated as TIN nodes.
Hard_Line—Breakline features will define linear discontinuities in the TIN.
Soft_Line—Breakline features will define linear discontinuities in the TIN.
Hard_Clip—Polygon features will define the data area of the TIN surface.
Soft_Clip—Polygon features will define the data area of the TIN surface.
Hard_Erase—Polygon features will define interior voids in the data.
Soft_Erase—Polygon features will define interior voids in the data.
Hard_Replace—Polygon features will define areas of constant height.
Soft_Replace—Polygon features will define areas of constant height.
Hardvalue_Fill—Integer attributes will be assigned to nodes and triangle faces.
Softvalue_Fill—Integer attributes will be assigned to nodes and triangle faces.
Use Z—Specifies whether z- or m-values will be used when the SHAPE field is specified as the height source. Specifying True indicates that z-values will be used; specifying False indicates that m-values will be used.
|
Value Table
|
|
constrained_delaunay
(可选)
|
指定将与 TIN 隔断线一同使用的三角测量技术。
CONSTRAINED_DELAUNAY—The TIN will use constrained Delaunay triangulation, which will add each segment as a single edge. Delaunay triangulation rules are honored everywhere except along breaklines, which will not be densified.
DELAUNAY—The TIN will use Delaunay conforming triangulation, which may densify each segment of the breaklines to produce multiple triangle edges. This is the default.
|
Boolean
|
派生输出
|
名称
|
说明
|
数据类型
|
|
derived_out_tin
|
更新后的 TIN。
|
TIN Layer
|
代码示例
下面的示例演示了如何在 Python 窗口中使用此工具:
arcpy.env.workspace = "C:/data"
arcpy.ddd.EditTin("my_tin", "clip_polygon.shp <None> <None> hardclip false; "\
"new_points.shp Shape <None> masspoints true", "Delaunay")
下面的示例演示了如何在独立 Python 脚本中使用此工具:
'''****************************************************************************
Name: EditTin Example
Description: This script demonstrates how to use the
EditTin tool to add features to a output of the CopyTin tool.
****************************************************************************'''
# Import system modules
import arcpy
# Set environment settings
arcpy.env.workspace = "C:/data/LAS"
# Set Local Variables
origTin = "elevation"
copyTin = "elev_copy"
inFCs = [["Clip_Polygon.shp", "<None>", "<None>", "hardclip", False],
["new_points.shp", "Shape", "<None>", "masspoints", True]]
# Run CopyTin
arcpy.ddd.CopyTin(origTin, copyTin, "CURRENT")
# Run EditTin
arcpy.ddd.EditTin(copyTin, inFCs, Delaunay)