Résumé
Met à niveau la structure de la bibliothèque de produits.
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.
Utilisation
L’espace de travail pour la bibliothèque de produits doit être une géodatabase et contenir une structure de bibliothèque de produits. Cet outil la mettra à niveau à la version la plus récente de la bibliothèque de produits.
Use a path to a connection file if Workspace for Product Database references an enterprise geodatabase. The user credentials in the connection file must have permission to create data in the workspace.
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.
Syntaxe
UpgradeProductLibrary(product_library_workspace, {database_config_keyword})
Paramètre | Explication | Type de données |
product_library_workspace | The workspace that will store the product library. | Workspace |
database_config_keyword (Facultatif) | Database storage or configuration keyword. The default is Defaults. | String |
Exemple de code
Exemple d'utilisation de l'outil +++Mettre à niveau une bibliothèque de produits (script autonome)
Le script autonome ci-dessous illustre l'utilisation de l'outil +++Mettre à niveau une bibliothèque de produits.
# 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")
Environnements
Informations de licence
- ArcGIS Desktop Basic: Non
- ArcGIS Desktop Standard: Requiert Production Mapping
- ArcGIS Desktop Advanced: Requiert Production Mapping