ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Create Production Database

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

Creates a production database in a geodatabase to store tables used by Esri Defense Mapping, Esri Production Mapping, ArcGIS for Maritime: Charting, ArcGIS for Maritime: Bathymetry, or ArcGIS for 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.

Usage

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

  • The user credentials in the connection file must have permission to create data in the workspace. Oracle Geodatabases require that only the schema owner can create a production database.

  • You can use a configuration keyword for file and enterprise geodatabases. Each geodatabase type and configuration supports different configuration keywords; however, personal geodatabases do not support keywords.

Syntax

arcpy.production.CreateProductionDatabase(production_database_workspace, {database_config_keyword}, {production_database_extension})
ParameterExplanationData Type
production_database_workspace

The workspace that will store the production database.

Workspace
database_config_keyword
(Optional)

Database storage or configuration keyword. The default is Defaults.

String
production_database_extension
(Optional)

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 for Aviation: Charting production database will be created.
  • MARITIME_CHARTING —An ArcGIS for Maritime: Charting production database will be created.
String

Code sample

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

Environments

  • Current Workspace

Licensing information

  • Basic: No
  • Standard: Requires Production Mapping
  • Advanced: Requires Production Mapping

Related topics

  • Create Product Library
  • What is the product library?
  • What are configuration keywords?
  • An overview of the Product Library toolset

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2020 Esri. | Privacy | Legal