ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

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

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS Developers

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

ArcGIS Solutions

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

ArcGIS Marketplace

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

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

ArcMap

  • 主页
  • 入门
  • 地图
  • 分析
  • 管理数据
  • 工具
  • 扩展模块

Create Production Database

  • 描述
  • 使用方法
  • 语法
  • 代码示例
  • 环境
  • 许可信息

描述

Creates a production database in a geodatabase to store tables used by ArcGIS Defense Mapping, ArcGIS Production Mapping, ArcGIS Maritime, ArcGIS Bathymetry, or ArcGIS Aviation, each of which stores different data models in its production databases. These data models describe hard-copy maps or charts based on product specifications.

使用方法

  • The Workspace for Production Database parameter value must be a geodatabase.

  • 连接文件中的用户凭据必须具有在工作空间中创建数据的权限。Oracle 地理数据库要求只有方案所有者才能创建生产数据库。

  • 可以对文件地理数据库和企业级地理数据库使用配置关键字。每个地理数据库类型和配置支持的配置关键字不同;但个人地理数据库不支持关键字。

语法

arcpy.production.CreateProductionDatabase(production_database_workspace, {database_config_keyword}, {production_database_extension})
参数说明数据类型
production_database_workspace

将存储生产数据库的工作空间。

Workspace
database_config_keyword
(可选)

数据库存储或配置关键字。默认值为 Defaults。

String
production_database_extension
(可选)

Specifies the type of production database that will be created in the input workspace. If this parameter is not set, a Production Mapping production database will be created.

  • AVIATION —An ArcGIS Aviation Charting production database will be created.
  • MARITIME_CHARTING —An ArcGIS Maritime production database will be created.
String

代码示例

CreateProductionDatabase example (stand–alone script)

The following stand-alone script demonstrates how to use the CreateProductionDatabase function.

# 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")

环境

  • 当前工作空间

许可信息

  • Basic: 否
  • Standard: 需要 Production Mapping
  • Advanced: 需要 Production Mapping

相关主题

  • Create Product Library
  • What is the product library?
  • 什么是配置关键字?
  • An overview of the Product Library toolset

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

关于 Esri

  • 关于我们
  • 招贤纳士
  • Esri 博客
  • 用户大会
  • 开发者峰会
Esri
分享您的想法。
Copyright © 2021 Esri. | 隐私政策 | 法律声明