ArcGIS for Desktop

  • 文档
  • 合约
  • 支持

  • My Profile
  • 帮助
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

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

ArcGIS for Desktop

全面的专业性 GIS

ArcGIS for Server

面向企业的 GIS

ArcGIS for Developers

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

ArcGIS Solutions

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

ArcGIS Marketplace

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

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

帮助

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

PublishMSDToServer

  • 摘要
  • 讨论
  • 语法

摘要

法律声明:

从 ArcGIS 10.1 for Server 开始,地图服务器定义 (.msd) 文件已被替换为服务定义草稿 (.sddraft) 文件和服务定义 (.sd) 文件。请改用上载服务定义 (Upload Service Definition) 地理处理工具。

将现有的地图服务定义 (MSD) 文件发布到指定的 ArcGIS for Server。

讨论

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

使用 ArcPy 将地图文档自动发布到 GIS 服务器的流程分为四步。第一步是运行 CreateMapSDDraft 函数。CreateMapSDDraft 的输出是服务定义草稿 (.sddraft) 文件,服务定义草稿由地图文档、服务器信息和一组服务属性组合而成。随后可使用 AnalyzeForSD 函数分析输出的服务定义草稿文件的适用性和潜在性能问题。紧接着使用 Stage Service 地理处理工具将服务定义草稿转换为完全合并的服务定义 (.sd) 文件。过渡过程会编译成功发布 GIS 资源所需的所有必要信息。如果选择将数据复制到服务器,则将在服务定义草稿阶段添加数据。最后,可以使用上载服务定义地理处理工具上载服务定义文件并将其作为 GIS 服务发布到特定的 GIS 服务器。此步骤将获取服务定义文件、将其复制到服务器、提取所需信息并发布 GIS 资源。有关详细信息,请参阅发布工具集概述。

语法

PublishMSDToServer (msd_path, connection_url_or_name, server, service_name, {folder_name}, {service_capabilities}, {connection_username}, {connection_password}, {connection_domain})
参数说明数据类型
msd_path

A string that represents the path and name of an existing MXD document you want to serve.

String
connection_url_or_name

A string that represents the URL of the ArcGIS for Server to which you want to publish the MSD.

String
server

A string that represents the ArcGIS for Server host name to which you want to publish the MSD.

String
service_name

A string that represents the name of the service. This is the name people will see and use to identify the service. The name can only contain alphanumeric characters and underscores. No spaces or special characters are allowed. The name cannot be more than 120 characters in length.

String
folder_name

A string that represents a folder name to which you want to publish the MSD. If the folder does not currently exist, it will be created. The default folder is the server root level.

String
service_capabilities
[service_capabilities,...]

A list of strings that represents additional capabilities in addition to the map service capability.

  • MAPPING —The default ArcGIS for Server capability
  • KML —Keyhole Markup Language
  • WCS —Web Coverage Service
  • WFS —Web Feature Service
  • WMS —Web Map Service

(默认值为 MAPPING)

String
connection_username

A string that represents a user name used to connect to the ArcGIS for Server. To publish a map service, this user name should be a member of the ArcGIS for Server admin group. This variable is only necessary when connecting to a UNIX/Linux ArcGIS for Server.

(默认值为 None)

String
connection_password

A string that represents a password used to connect to the ArcGIS for Server. This variable is only necessary when connecting to a UNIX/Linux ArcGIS for Server.

(默认值为 None)

String
connection_domain

A string that represents a domain name used to connect to the ArcGIS for Server. This variable is only necessary when connecting to a UNIX/Linux ArcGIS for Server.

(默认值为 None)

String
有关此主题的反馈?

ArcGIS for Desktop

  • 主页
  • 文档
  • 合约
  • 支持

ArcGIS 平台

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

关于 Esri

  • 关于我们
  • 招贤纳士
  • 内部人员博客
  • 用户大会
  • 开发者峰会
Esri
© Copyright 2016 Environmental Systems Research Institute, Inc. | 隐私政策 | 法律声明