ArcGIS Desktop

  • 文档
  • 支持

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

专为贵组织打造的制图平台

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS for Developers

用于构建位置感知应用程序的工具

ArcGIS Solutions

适用于行业的免费模板地图和应用程序

ArcGIS Marketplace

获取适用于组织的应用程序和数据

  • 文档
  • 支持
Esri
  • 登录
user
  • 我的个人资料
  • 登出

Help

  • 主页
  • 入门
  • 制图
  • 分析
  • 管理数据
  • 工具
  • 更多...

Convert Labels To Annotation

  • 摘要
  • 用法
  • 语法
  • 代码示例
  • 环境
  • 许可信息

摘要

Defense Mapping production tool that converts MTM and TM labels to annotation based on an input annotation feature class and map document.

用法

  • 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.

语法

ConvertLabelsToAnnotation_defense (in_mapdocument, in_annotation, {out_annotation})
参数说明数据类型
in_mapdocument

The map document file that will be updated.

注:

ArcPy Map Document objects are not supported in this tool.

ArcMap Document
in_annotation

Existing annotation feature class where the labels will be converted to annotation.

Feature Class, Feature Layer
out_annotation
(可选)

Output annotation feature class derived from the in_annotation parameter.

Feature Class

代码示例

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)

环境

  • 当前工作空间

许可信息

  • ArcGIS Desktop Basic: 否
  • ArcGIS Desktop Standard: 需要 Defense Mapping
  • ArcGIS Desktop Advanced: 需要 Defense Mapping

相关主题

  • An overview of the Utilities toolset

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS 平台

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

关于 Esri

  • 关于我们
  • 招贤纳士
  • 内部人员博客
  • 用户大会
  • 开发者峰会
Esri
分享您的想法。
Copyright © 2017 Esri. | 隐私政策 | 法律声明