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 ArcGIS 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.
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 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.
If a configuration keyword is not selected for the 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.
Versioned Reviewer workspaces created prior to ArcGIS Pro 2.1 will require a user administrative privileges to reconcile and post the Reviewer session tables and compress the enterprise geodatabase before upgrading to the latest Reviewer schema.
The Coordinate System parameter is ignored when upgrading a Reviewer workspace to the current version.
The Register as Versioned parameter is honored when upgrading a nonversioned Reviewer workspace to the current version. The parameter is ignored when upgrading a versioned Reviewer workspace to the current version and the parameter is set to false.
The Configuration Keyword parameter is honored when upgrading a Reviewer workspace to the current version and tables are missing. The Configuration Keyword parameter is ignored when upgrading a Reviewer workspace to the current version and all tables are present.
Syntax
EnableDataReviewer(workspace, {spatial_reference}, {register_as_versioned}, {config_keyword})
Parameter | Erklärung | 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 |
Abgeleitete Ausgabe
Name | Erklärung | Datentyp |
out_reviewer_workspace | The Reviewer workspace generated by the tool. | Workspace |
Codebeispiel
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
# 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","#")
Umgebungen
Lizenzinformationen
- Basic: Erfordert Data Reviewer
- Standard: Erfordert Data Reviewer
- Advanced: Erfordert Data Reviewer