シンボル回転の生成属性ルール (データ管理ツール)
サマリー
シンボル回転ロジックに特化した属性ルールを生成します。 ツールは、指定された入力に基づき、ArcGIS Arcade 属性ルールを含む .csv ファイルを出力します。
使用法
出力フォルダー パラメーターは、入力フィーチャクラスの名前を使用して、フォルダーを作成する場所を指定します。 出力 .csv ファイルでは、回転フィールド パラメーター値を使用します。 ツールを複数回実行すると、追加の .csv ファイルがフォルダーに追加されます。
ツールを実行後、属性ルールをインポートして、データセットに適用します。 データセットがエンタープライズ ジオデータベースの場合、出力テンプレート属性ルールを適用するにはデータ所有者である必要があります。
属性ルールのインポートに関する詳細
パラメーター
ラベル
説明
データ タイプ
入力テーブル
新しいルールが適用されるポイント フィーチャクラス。
Feature Layer
出力フォルダー
出力 .csv ファイルの保存先フォルダー。 ファイルの名前は、入力テーブル パラメーター値と同じになります。
String
回転フィールド
ルールの適用先となる既存のフィールドの名前。
Field
交差ライン クラス
ポイント フィーチャクラスを交差させるためのライン フィーチャクラス。 方向フィールドは、複数の交差ラインが存在する場合にタイ ブレーカーとして使われる数値フィールドです。
値テーブル列:
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
式
(オプション)
属性ルールを適用するフィーチャを制限する SQL 式。
SQL Expression
回転オプション
(オプション)
ポイント フィーチャクラスの回転オプション。
値テーブル列:
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.
Additional Rotation —The rotation value that will be added to the calculated rotation value. The default is 0.
Value Table
派生した出力
ラベル
説明
データ タイプ
出力 CSV ファイル
テンプレート属性ルールを含む出力 .csv ファイル。
File
arcpy.management.GenerateSymbolRotationAttributeRule(in_table, out_folder, field, line_classes, {where_clause}, {rotation_options})
名前
説明
データ タイプ
in_table
新しいルールが適用されるポイント フィーチャクラス。
Feature Layer
out_folder
出力 .csv ファイルの保存先フォルダー。 ファイルの名前は、in_table パラメーター値と同じになります。
String
field
ルールの適用先となる既存のフィールドの名前。
Field
line_classes
[[Line Class, Orientation Field],...]
ポイント フィーチャクラスを交差させるためのライン フィーチャクラス。 方向フィールドは、複数の交差ラインが存在する場合にタイ ブレーカーとして使われる数値フィールドです。
値テーブル列:
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.
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
)
環境
このツールは、ジオプロセシング環境を一切使用しません。
ライセンス情報
Basic: いいえ
Standard: はい
Advanced: はい