ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • ヘルプ
  • Sign Out
ArcGIS Desktop

ArcGIS Online

組織のマッピング プラットフォーム

ArcGIS Desktop

完全なプロ仕様の GIS

ArcGIS Enterprise

エンタープライズ GIS

ArcGIS for Developers

位置情報利用アプリの開発ツール

ArcGIS Solutions

各種業界向けの無料のテンプレート マップおよびテンプレート アプリケーション

ArcGIS Marketplace

組織で使えるアプリとデータを取得

  • ドキュメント
  • サポート
Esri
  • サイン イン
user
  • マイ プロフィール
  • サイン アウト

ArcMap

  • ホーム
  • はじめに
  • マップ
  • 解析
  • データ管理
  • ツール
  • エクステンション

Add Representation Fields

  • サマリー
  • 使用法
  • 構文
  • コードのサンプル
  • 環境
  • ライセンス情報

サマリー

Defense Mapping configuration tool that applies representation symbology to the input features. This tool applies symbology to many layers and links feature attributes to representation rules and label expressions.

使用法

  • You can apply multiple visual specifications to multiple input features.

  • The Visual Specifications Workspace contains the visual specifications you can apply to input features.

  • This tool adds fields to the input features. The number and names of the fields will vary but will include the following:

    • A field that holds the representation rule number. This is known as the representation rule field.
    • An override field associated with the representation to store symbol exception information. The override field contains exception information on an individual representation.
    • An optional new or existing field that holds calculated values. The calculated field contains the value that is produced as part of the selected specification.

  • The representation rule field contains the number of the symbol being used for the feature class in association with feature class representations.

構文

AddRepresentationFields(in_features, in_visual_spec_workspace, in_specs)
パラメーター説明データ タイプ
in_features
[in_features,...]

The feature classes where the visual specifications field will be added.

Feature Layer
in_visual_spec_workspace

The location of the workspace that contains the visual specifications table (VST_Specification). This table can be stored in a personal, file, or enterprise geodatabase.

Workspace
in_specs
[in_specs,...]

The visual specifications you want to apply to the selected feature layers and feature classes.

String

コードのサンプル

AddRepresentationFields example 1 (stand-alone script)

The following code example demonstrates how to execute the AddRepresentationFields tool.

# Running Add Represenation Fields with preset feature classes
# Importing arcpy module
import arcpy

# Checking out Defense extension
arcpy.CheckOutExtension('defense')

# Setting input variables
features = 'C:\Data\MGCP_TRD_4_2.gdb\MGCP_Delta\ElevP;C:\Data\MGCP_TRD_4_2.gdb\MGCP_Delta\ContourL'
specification_database = r'C:\DefenseProductFiles\Mgcp\Cartography\Symbology\MGCP_TRD_4_2_MTM_Visual_Specification.gdb'
specification = 'MGCP_50K :: MGCP TRD 4.2 Visual Specification for MGCP Topographic Map (MTM)'

# Calling Add Representation Fields tool
arcpy.defense.AddRepresentationFields(features, specification_database, specification)

# Checking in Defense extension
arcpy.CheckInExtension('defense')
AddRepresentationFields example 2 (stand-alone script)

The following code example demonstrates how to execute the AddRepresentationFields tool.

# Running Add Representation Fields getting the features from a database
# Importing arcpy, os and string modules
import arcpy, os, string

# Checking out Defense extension
arcpy.CheckOutExtension('defense')

# Setting input database
input_database = r'C:\Data\MGCP_TRD_4_2.gdb'

# Getting feature classes from database
arcpy.env.workspace = input_database
feature_classes = []
feature_datasets = arcpy.ListDatasets('*', 'Feature')
for dataset in feature_datasets:
    fclass = arcpy.ListFeatureClasses('*', '', dataset)
    for fc in fclass:
        feature_classes.append(os.path.join(input_database, dataset, fc))

# Converting feature classes into layers
layer_list = []
for feat_class in feature_classes:
    class_name = string.split(os.path.split(feat_class)[1], '.')[-1]
    arcpy.management.MakeFeatureLayer(feat_class, class_name)
    layer_list.append(class_name)

# Creating string for input to Add Representation Fields tool
feature_string = ''
for layer in layer_list:
    feature_string += '{};'.format(layer)

# Setting input variables
specification_database = r'C:\DefenseProductFiles\Mgcp\Cartography\Symbology\MGCP_TRD_4_2_MTM_Visual_Specification.gdb'
specification = 'MGCP_50K :: MGCP TRD 4.2 Visual Specification for MGCP Topographic Map (MTM)'

# Calling Add Representation Fields tool
arcpy.defense.AddRepresentationFields(feature_string, specification_database, specification)

# Checking in Defense extension
arcpy.CheckInExtension('defense')

環境

  • 現在のワークスペース

ライセンス情報

  • ArcGIS Desktop Basic: いいえ
  • ArcGIS Desktop Standard: 次のものが必要 Defense Mapping
  • ArcGIS Desktop Advanced: 次のものが必要 Defense Mapping

関連トピック

  • An overview of the Symbology toolset

ArcGIS Desktop

  • ホーム
  • ドキュメント
  • サポート

ArcGIS プラットフォーム

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

Esri について

  • 会社概要
  • 採用情報
  • Esri ブログ
  • ユーザ カンファレンス
  • デベロッパ サミット
Esri
ご意見・ご感想をお寄せください。
Copyright © 2019 Esri. | プライバシー | リーガル