摘要
Creates a new production database within a geodatabase. A production database stores tables used by Esri Mapping and Charting Solutions. Esri Production Mapping, Esri Defense Mapping, and the Esri Aeronautical Solution store different data models in their production databases. These data models describe hard-copy maps or charts based on product specifications.
用法
The Workspace for Production Database must be a geodatabase.
连接文件中的用户证书必须具有在工作空间中创建数据的权限。Oracle 地理数据库要求只有方案所有者才能创建生产数据库。
可以对文件地理数据库和企业级地理数据库使用配置关键字。每个地理数据库类型和配置支持的配置关键字不同;但个人地理数据库不支持关键字。
语法
CreateProductionDatabase(production_database_workspace, {database_config_keyword}, {production_database_extension})
参数 | 说明 | 数据类型 |
production_database_workspace | 将存储生产数据库的工作空间。 | Workspace |
database_config_keyword (可选) | 数据库存储或配置关键字。默认值为 Defaults。 | String |
production_database_extension (可选) | Indicates an Esri Mapping and Charting Solutions data model to apply to a production database in the input workspace. If not set, a Production Mapping production database is created.
| String |
代码示例
CreateProductionDatabase example (stand–alone script)
The following stand-alone script demonstrates how to use the CreateProductionDatabase tool.
# Name: CreateProductionDatabase_Example.py
# Description: Creates a new production database in a file geodatabase
# Requirements: Production Mapping extension
# import arcpy and checkout a Production Mapping license
import arcpy
arcpy.CheckOutExtension("foundation")
#Set local variables
production_database_workspace = "C:\\Data\\ProductionDatabase.gdb"
database_config_keyword = "DEFAULTS"
# create a production database
arcpy.CreateProductionDatabase_production(production_database_workspace, database_config_keyword)
print "Script completed successfully."
# Check in the extension
arcpy.CheckInExtension("foundation")
环境
许可信息
- ArcGIS Desktop Basic: 否
- ArcGIS Desktop Standard: 需要 Production Mapping
- ArcGIS Desktop Advanced: 需要 Production Mapping