ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

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

ArcGIS Online

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

ArcGIS Desktop

完全なプロ仕様の GIS

ArcGIS Enterprise

エンタープライズ GIS

ArcGIS Developers

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

ArcGIS Solutions

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

ArcGIS Marketplace

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

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

ArcMap

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

Convert Labels To Annotation

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

概要

ArcGIS Defense Mapping cartographic production tool that converts labels to annotation based on an input map document, annotation feature class, and optional data frame.

使用法

  • This tool attempts to match label classes on a layer with an annotation class in the target annotation feature class. If it finds a match, it will create annotation for that label class.

  • If the map has a reference scale set and it does not match the reference scale of the annotation feature class, you will get a warning. If the map does not have reference scale, it checks the map scale, and if it is different than the annotation feature class reference scale, you will get a warning.

  • If a layer's visibility is turned off, that layer will be skipped.

  • If the property Label Features is not selected on a layer, that layer will be skipped.

  • If the property Label features in the class is not checked in a label class, that label class will be skipped.

  • If the min/max scale properties in the label class indicate the labels should not be drawn based on the current map scale, the label class will be skipped.

  • Generating annotation is a resource-intensive process. Processing a map document that will result in large numbers of annotations created can consume a lot of memory.

  • Labeling in the .mxd will be turned off after running this tool so the labels and annotation do not conflict.

構文

arcpy.defense.ConvertLabelsToAnnotation(in_mapdocument, in_annotation, {in_dataframe})
パラメーター説明データ タイプ
in_mapdocument

The map document file that will be updated.

メモ:

ArcPy MapDocument objects are not supported in this tool.

ArcMap Document
in_annotation

Existing annotation feature class where the labels will be converted to annotation. The annotation class names must match the label class names in the input map document layers. Annotation will not be created for label classes when a corresponding annotation class does not exist.

Feature Class; Feature Layer
in_dataframe
(オプション)

The data frame to apply the labels to annotation conversion. If not selected, the tool will process all data frames in the input map document.

String

コードのサンプル

ConvertLabelsToAnnotation example (Python window)

The following code example demonstrates how to execute the ConvertLabelsToAnnotation function.

# Script variables
mxd = 'C:/Example/Untitled.mxd'
annoFeatures = 'C:/Example/example.gdb/CARTO/MTM50_Anno'

# Run Convert Labels to Annotation tool
arcpy.ConvertLabelsToAnnotation_defense(mxd, annoFeatures)

環境

  • 現在のワークスペース

ライセンス情報

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

関連トピック

  • An overview of the Utilities toolset

ArcGIS Desktop

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

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

Esri について

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