Mit der Data Reviewer-Lizenz verfügbar.
Zusammenfassung
Adds a feature dataset and tables necessary for an existing geodatabase to be considered a Reviewer workspace and store Data Reviewer results. The Reviewer workspace tables are required by Data Reviewer to manage Reviewer sessions.
Verwendung
This tool adds the required dataset and tables for storing Reviewer results, if they do not already exist.
If this tool is run on an older version of a Reviewer workspace, the tables will be updated to the current schema.
A warning appears if this tool is run on a current version of the Reviewer workspace.
This tool can be used in conjunction with the Create Reviewer Session tool to create a new session in the Reviewer workspace.
The spatial reference of the Reviewer workspace and the data being validated must match or Reviewer geometries cannot be stored in the Reviewer workspace.
If a configuration keyword is not selected for the config_keyword (Configuration Keyword) parameter, the Output CONFIG Keyword environment setting will be used as a configuration keyword. If the environment setting does not exist, DEFAULTS will be used as the configuration keyword.
Syntax
EnableDataReviewer_Reviewer (workspace, {spatial_reference}, {register_as_versioned}, {config_keyword})
Parameter | Erläuterung | Datentyp |
workspace | The geodatabase where the Data Reviewer tables and feature dataset will be created. This can be a desktop or enterprise geodatabase. | Workspace |
spatial_reference (optional) | The geographic or projected coordinate system of the feature classes in the Reviewer workspace. The default is GCS_WGS_1984 if no value is specified. | Spatial Reference |
register_as_versioned (optional) | Indicates whether the feature classes and tables added to the workspace will be registered as versioned. This only applies to enterprise databases.
| Boolean |
config_keyword (optional) | The configuration keyword that determines the storage parameters of the database tables. This applies to file and enterprise geodatabases. The DEFAULTS keyword is used by default. | String |
Codebeispiel
EnableDataReviewer example (stand-alone script)
The following stand-alone script demonstrates the EnableDataReviewer tool.
# Name: EnableDataReviewer.py
# Description: Adds the Reviewer workspace feature dataset and tables to
# a new geodatabase and creates a Reviewer session
# Author: Esri
# Date: June 2014
# Import arcpy module
import arcpy
# Check out Data Reviewer license
arcpy.CheckOutExtension("datareviewer")
# Set environment
arcpy.env.workspace="c:/data/"
# Create new geodatabase
workspace = arcpy.CreateFileGDB_management("c:/data/","ReviewerWorkspace")
# Execute EnableDataReviewer
arcpy.EnableDataReviewer_Reviewer(workspace,"#","#","DEFAULTS")
# Create a new Reviewer session
arcpy.CreateReviewerSession_Reviewer(workspace,"Session 1","#")
# Check in Data Reviewer license
arcpy.CheckInExtension("datareviewer")
Umgebungen
Lizenzinformationen
- ArcGIS Desktop Basic: Erfordert Data Reviewer
- ArcGIS Desktop Standard: Erfordert Data Reviewer
- ArcGIS Desktop Advanced: Erfordert Data Reviewer