Disponible avec une licence Data Reviewer.
Résumé
Creates a new Reviewer session in the specified workspace.
Utilisation
If the specified workspace is not a Reviewer workspace, the tool returns error 090034: Selected workspace is not a Reviewer Workspace. The workspace does not have all required reviewer tables. Use the Create Reviewer Session geoprocessing tool or the Reviewer Session Manager to create a Reviewer workspace.
If the specified workspace contains an older version of the Reviewer schema, the tool returns error 090036: This is an older version of Reviewer workspace. You can use the Reviewer Session Manager to upgrade the workspace.
When creating a session in an ArcSDE geodatabase, the new session's version is the version associated with the connection properties of the Reviewer Workspace database connection.
The Session Template parameter allows you to copy settings from an existing Reviewer session into the new session created by this tool. Settings include the following:
- Continue batch processing if check fails
- Continue batch processing if default checks return error
- Do not store geometry for faster processing
- Reviewer Table Writer Options (Check for duplicates)
- Reviewer Table Properties
- Default checks
- How to Write Results
Syntaxe
CreateReviewerSession_Reviewer (reviewer_workspace, session_name, {session_template})
Paramètre | Explication | Type de données |
reviewer_workspace | The workspace in which a new Reviewer session is going to be created. | Workspace |
session_name | The name of the session that is going to be created in the Reviewer workspace. | String |
session_template (Facultatif) | An existing Reviewer session whose properties will be copied to the new session. | String |
Exemple de code
CreateReviewerSession example (stand-alone Python script)
This stand-alone Python script creates a new session in the Reviewer workspace stored in an ArcSDE geodatabase. The session is called QC Pass 1.
# Name: CreateReviewerSession.py
# Description: Creates a reviewer session in a geodatabase
# Author: Esri
# Date: December 2011
# Import arcpy module
import arcpy
# check out a data reviewer extension license
arcpy.CheckOutExtension("datareviewer")
# path to a workspace
reviewer_gdb = "C:/SampleData/Reviewer.sde"
# Execute the Create Reviewer Session tool
arcpy.CreateReviewerSession_Reviewer(reviewer_gdb, "Session 1 : QC Pass 1")
# check in the data reviewer extension
arcpy.CheckInExtension("datareviewer")
Environnements
Cet outil n'utilise aucun environnement de géotraitement
Informations de licence
- ArcGIS Desktop Basic: Requiert Data Reviewer
- ArcGIS Desktop Standard: Requiert Data Reviewer
- ArcGIS Desktop Advanced: Requiert Data Reviewer