升级生产数据库 (Production Mapping)

许可等级:BasicStandardAdvanced

摘要

升级生产数据库方案。生产数据库用于存储 Esri Mapping and Charting 解决方案中所使用的表。Esri Production MappingEsri Defense MappingArcGIS for Aviation:Charting 在各自的生产数据库中存储了不同的数据模型。这些数据模型基于产品规范描述了硬拷贝地图或图表。

用法

语法

UpgradeProductionDatabase_production (production_database_workspace, {database_config_keyword})
参数说明数据类型
production_database_workspace

The workspace that will store the production database.

Workspace
database_config_keyword
(可选)

Database storage or configuration keyword. The default is Defaults.

String

代码实例

升级生产数据库 (UpgradeProductionDatabase) 示例(独立脚本)

以下独立脚本演示了如何使用升级生产数据库 (UpgradeProductionDatabase) 工具。此脚本用于从先前版本升级包含方案的生产数据库。

# Name: UpgradeProductionDatabase_Example.py
# Description: Upgrades a production database in an existing file geodatababase to the current schema
# Requirements: Production Mapping extension

# import arcpy and checkout a Production Mapping license
import arcpy
arcpy.CheckOutExtension("foundation")

#Set local variables
productiondatabase_workspace = "C:\\Data\\ProductionDatabase.gdb"
database_config_keyword = "DEFAULTS"

# upgrades a production database
arcpy.UpgradeProductionDatabase_production(productiondatabase_workspace, database_config_keyword)

print "Script completed successfully."

# Check in the extension
arcpy.CheckInExtension("foundation")

环境

相关主题

许可信息

ArcGIS for Desktop Basic: 否
ArcGIS for Desktop Standard: 需要 Production Mapping
ArcGIS for Desktop Advanced: 需要 Production Mapping
4/27/2014