Upgrade Production Database (Production Mapping)

ライセンス レベル:BasicStandardAdvanced

サマリ

Upgrades a production database schema. A production database stores tables used by Esri Mapping and Charting Solutions. Esri Production Mapping, Esri Defense Mapping, and the ArcGIS for Aviation:Charting store different data models in their production databases. These data models describe hard-copy maps or charts based on product specifications.

使用法

構文

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 example (stand-alone script)

The following stand-alone script demonstrates how to use the UpgradeProductionDatabase tool. The script upgrades a production database with a schema from a previous version.

# 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/26/2014