ConvertToMSD (arcpy.mapping)

摘要

法律声明法律声明:

ArcGIS 10.1 for Server 开始,地图服务器定义 (.msd) 文件已被替换为服务定义草稿 (.sddraft) 文件和服务定义 (.sd) 文件。请改用 CreateMapSDDraft 函数。

将地图转换为地图服务定义 (.msd) 文件。

讨论

ArcGIS 10.1 for Server 开始,地图服务器定义 (.msd) 文件已被替换为服务定义草稿 (.sddraft) 文件和服务定义 (.sd) 文件。有关详细信息,请参阅以下帮助主题:迁移至 ArcGIS for Server 时可能出现的情况

请考虑改用 CreateMapSDDraft 函数。

语法

ConvertToMSD (map_document, out_msd, {data_frame}, {msd_anti_aliasing}, {msd_text_anti_aliasing})
参数说明数据类型
map_document

A variable that references a MapDocument object.

MapDocument
out_msd

A string that represents the path and file name for the output MSD file.

String
data_frame

A variable that references a DataFrame object. If more than one data frame exists, it is important to specify which data frame will be the active data frame for the published service. The default value is the active data frame.

(默认值为 USE_ACTIVE_VIEW)

DataFrame
msd_anti_aliasing

A string that sets antialiasing for nontext items within the saved MSD.

  • NONE No antialiasing is performed.
  • FASTEST Minimal antialiasing is performed, optimized for speed.
  • FAST Some antialiasing is performed, optimized for speed with better quality than FASTEST.
  • NORMAL A good balance of speed and quality.
  • BEST The best quality antialiasing. This option takes the longest to render.

(默认值为 NONE)

String
msd_text_anti_aliasing

A string that sets antialiasing for text items within the saved MSD.

  • FORCE Text is always drawn with antialiasing, regardless of the individual font's parameters.
  • NORMAL Antialiasing is performed as determined by the font. Each individual font has parameters created within it by the font author that defines which sizes the font should draw with antialiasing.
  • NONE No antialiasing is performed.

(默认值为 NONE)

String
5/10/2014