升级产品库 (Production Mapping)

许可等级:BasicStandardAdvanced

摘要

升级产品库方案。

A product library is a series of tables in a geodatabase that allows multiuser environments to centralize information and behavior for cartographic and digital data production. Production business rules, documents, and spatial information are stored inside the product library, allowing an organization to enforce and standardize production. Data model information, data validation rules, geographic extents, symbology rules, and map documents can all be managed inside the product library as examples of production business rules. A product library workspace is a required input for any product library-related workflow.

用法

语法

UpgradeProductLibrary_production (product_library_workspace, {database_config_keyword})
参数说明数据类型
product_library_workspace

The workspace that will store the product library.

Workspace
database_config_keyword
(可选)

Database storage or configuration keyword. The default is Defaults.

String

代码实例

升级产品库 (UpgradeProductLibrary) 示例(独立脚本)

以下独立脚本演示了如何使用升级产品库 (UpgradeProductLibrary) 工具。

# Name: UpgradeProductLibrary_Example.py
# Description: Upgrades a Product Library 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
productlibrary_workspace = "C:\\data\\productlibrary.gdb"
database_config_keyword = "DEFAULTS"

# upgrades a product library
arcpy.UpgradeProductLibrary_production(productlibrary_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