Line Class—The line feature classes that are used to intersect the point feature class.
Orientation Field—Orientation field is a numeric field that is used as a tie breaker when there are multiple intersecting lines.
Value Table
where_clause
(可选)
SQL 表达式用于限制属性规则的应用对象。
SQL Expression
rotation_options[[Point Class Expression, Rotation Style, Rotate Towards, Additional Rotation],...]
(可选)
点要素类的旋转配置选项。
值表列:
Point Class Expression—A SQL query that will further limit the features the attribute rule will be applied to. The default is none.
Rotation Style—Specifies how the direction will be measured.
ARITHMETIC—The rotation will start at zero in the east direction and is calculated counterclockwise. This is the default.
GEOGRAPHIC—The rotation will start at zero in the north direction and is calculated clockwise.
Rotate Towards—Specifies whether the feature will be oriented toward the maximum or minimum value.
MIN—The feature will be oriented toward the minimum value. This is the default.
MAX—The feature will be oriented toward the maximum value.
Additional Rotation—The rotation value that will be added to the calculated rotation value. The default is 0.
Value Table
派生输出
名称
说明
数据类型
out_rule_csv
包含模板属性规则的输出 .csv 文件。
File
代码示例
GenerateSymbolRotationAttributeRule 示例(独立脚本)
下面的独立脚本演示了如何在脚本环境中使用 GenerateSymbolRotation 函数。
# Description: GenerateSymbolRotationAttributeRule of a template attribute rule in a file geodatabase
# Import the system modules
import arcpy
# Set local variables
in_table = "C:/data/data.gdb"
out_folder = "C:/out/"
field = "symbolRotation"
line_classes = [['C:/data/state.gdb/roads', 'OBJECTID']]
arcpy.management.GenerateSymbolRotationAttributeRule(
in_table,
out_folder,
field,
line_classes
)