按角度设置控制点 (制图)

许可等级:BasicStandardAdvanced

摘要

在沿线或面轮廓且由线的方向变化而生成的角度小于或等于指定的最大角度的顶点处放置制图表达控制点。

插图

Set Representation By Control Point tool
Dash placement can be improved along a line or polygon outline when representation control points are placed at prominent angles

用法

语法

SetRepresentationControlPointByAngle_cartography (in_features, maximum_angle)
参数说明数据类型
in_features

包含线或面制图表达的输入要素图层。

Layer
maximum_angle

此角度用于确定是否将沿线或面轮廓的顶点设置为制图表达控制点。角度值必须大于零且小于 180 十进制度。

Double

代码实例

设置制图表达控制点 (SetRepresentationControlPointByAngle) 工具示例(Python 窗口)

以下 Python 窗口脚本演示了如何在即时模式下使用设置制图表达控制点 (SetRepresentationControlPointByAngle) 工具。

import arcpy
from arcpy import env
env.workspace = "C:\data"

arcpy.SetRepresentationControlPointByAngle_cartography("trails.lyr", "135")
设置制图表达控制点 (SetRepresentationControlPointByAngle) 工具示例(独立 Python 脚本)

此独立脚本显示了如何使用设置制图表达控制点 (SetRepresentationControlPointByAngle) 工具。

# Name: SetRepresentationControlPointByAngle_standalone_script.py
# Description: adds representation control points at locations where a feature has a sharp angle in its geometry
# Author: ESRI
 
# Import system modules
import arcpy
from arcpy import env

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

# Set local variables
in_representations = "trails.lyr"
minimum_angle_deviation = "135"

# Execute Set Representation Control Point At Intersect
arcpy.SetRepresentationControlPointAtIntersect_cartography(in_representations, minimum_angle_deviation)

环境

此工具不使用任何地理处理环境

相关主题

许可信息

ArcGIS for Desktop Basic: 否
ArcGIS for Desktop Standard: 否
ArcGIS for Desktop Advanced: 是
5/10/2014