Skip To Content

Create validation rules in an enterprise geodatabase

ArcGIS 11.4  | |  Archive de l’aide

Tutorial summary

In this tutorial, you will implement data quality workflows for neighborhood streets and related data to ensure that they meet your organization's data quality requirements. You will identify errors in data that is shared across the organization so that members can review and make edits to the data using the ArcGIS Data Reviewer extension for ArcGIS Pro and ArcGIS Enterprise. To get started, register a feature service and create three attribute validation rules to review the data.

Remarque :

Si vous n’avez pas accès à une géodatabase d’entreprise ou à un service d’entités, ou si vous ne maîtrisez pas les principes de base de l’utilisation de ArcGIS Enterprise, consultez les didacticiels de démarrage rapide ArcGIS Data Reviewer pour ArcGIS Pro.

Durée estimée

30 minutes

Configuration logicielle requise

Versions minimales de ArcGIS Pro 3.3 et de ArcGIS Enterprise 11.3 ou ultérieure

Licences requises

ArcGIS Pro:

  • ArcGIS Pro Standard
  • ArcGIS Data Reviewer pour ArcGIS Pro

ArcGIS Enterprise:

  • ArcGIS Server Standard
  • ArcGIS Data Reviewer pour ArcGIS Server
Remarque :

L’extension de type d’utilisateur ArcGIS Advanced Editing est requise pour suivre cette série de didacticiels.

Conditions requises pour les données

Les données de ce didacticiel sont disponibles à partir de la page ArcGIS Data Reviewer for Enterprise Tutorial. Ce paquetage contient un paquetage de projet et un sous-ensemble des données d’exemple Autorités locales. Pour télécharger les données, procédez comme suit :

  1. Go to the Data Reviewer for ArcGIS Enterprise Tutorial page.
  2. Click Download.
  3. Extract the files to a convenient location on your computer, such as C:\EsriTraining.

Open the project

Dans cet exercice, vous allez ouvrir un paquetage de projet avec ArcGIS Pro contenant des données modélisées dans une géodatabase fichier et vérifier son contenu.

  1. Démarrez ArcGIS Pro.
  2. Sign in to ArcGIS Pro using your Enterprise account if necessary.
  3. Sur la page de démarrage, à côté de vos projets récents, cliquez sur Open another project (Ouvrir un autre projet).
    Remarque :

    Si un projet est ouvert, cliquez sur Open Project (Ouvrir le projet) Ouvrir le projet dans la Quick Access Toolbar (Barre d’outils Accès rapide) et accédez à l’étape 4.

  4. Sur la page Open Project (Ouvrir un projet), cliquez sur Computer (Ordinateur).
  5. Browse to the project file in the folder where you downloaded and extracted the tutorial data: C:\EsriTrainng\DataReviewer_EnterpriseTutorial\CreateValidationRules.
  6. Click the DataReviewerTutorial.ppkx file.
  7. Cliquez sur OK.

Set up an enterprise geodatabase

To publish the neighborhood data as a feature service, you must create an enterprise geodatabase and add it to your project. Publishing data as a feature service allows it to be maintained and edited in a multiuser environment.

Remarque :

The following steps to create and connect to an enterprise geodatabase will vary based on the relational database management system (RDBMS) your organization uses. For this tutorial, the enterprise geodatabase is named DataReviewer_Tutorial and is implemented using PostgreSQL.

To set up an enterprise geodatabase, complete the following steps:

  1. Create an enterprise geodatabase named DataReviewer_Tutorial.
  2. Create a database connection.
    Remarque :

    Ensure that the Branch option is selected under Versioning Type.

    Database Connection dialog box with Branch versioning selected

    An enterprise geodatabase named DataReviewer_Tutorial is created and a new database connection is added in the Databases folder.

Migrate the tutorial data

To migrate the tutorial data from the file geodatabase to the target geodatabase and register the data as versioned, complete the following steps:

  1. In the Catalog pane, expand Databases and expand the DataReviewerTutorial file geodatabase.
  2. Press the Ctrl key while clicking the Naperville feature dataset and the MasterRoadName tables.
  3. Right-click any of the selected objects and click Copy.
  4. Right-click the enterprise geodatabase and click Paste Special.

    The Paste Special dialog box appears, and the Naperville feature dataset is listed in the first row.

    Paste Special dialog box

  5. Click OK.
  6. Expand the enterprise geodatabase.

    The enterprise geodatabase automatically updates to show the migrated data in the Catalog pane.

  7. In the Catalog pane, right-click the Naperville feature dataset in the enterprise geodatabase and click Manage.

    The Feature Dataset Properties dialog box appears with geodatabase properties in the Manage geodatabase functionality section.

    Feature Dataset Properties dialog box with the Manage tab selected

  8. On the Feature Dataset Properties dialog box, check the Versioning check box and choose the Branch option.

    Leave the Archiving, Global IDs, and Editor tracking check boxes checked (the default).

  9. Click OK to apply the geodatabase properties.
  10. In the Catalog pane, right-click the MasterRoadName table in the enterprise geodatabase and click Manage.
  11. On the Feature Dataset Properties dialog box, check the Versioning check box and choose the Branch option.

    Leave the Archiving, Global IDs, and Editor tracking check boxes checked (the default).

The tutorial data is migrated to the enterprise geodatabase. Now you will implement your organization's data quality requirements using Data Reviewer-based attribute rules.

Author validation attribute rules

Les règles attributaires de validation identifient les entités existantes dans une base de données qui ne répondent pas aux conditions de qualité des données spécifiées. Les règles de validation permettent d’évaluer l’intégrité géométrique d’une entité, les relations spatiales avec d’autres entités et la cohérence des attributs.

In this exercise, you will author a series of validation attribute rules in the enterprise geodatabase.

Le tableau suivant présente un sous-ensemble de critères de qualité des données qui prennent en charge les processus de recherche d’adresse. Vous allez implémenter ces règles attributaires de validation pour vous assurer que toutes les entités liées aux adresses sont conformes à ces critères.

IDExigencesVérifierTable/classe d’entités participante

1

Les entités routes ne doivent pas contenir de doublons.

Dupliquer entité

Road Centerline (Axe médian de route)

2

Building footprints must be within the tax parcel.

Feature on Feature

Building Footprint, Parcels

3

Les valeurs attributaires Full Road Name d’axe médian de route doivent correspondre à l’index principal des rues.

Attribut Table vers table

Road Centerline (Axe médian de route), Master Road Name (Nom de route principal)

Implement requirement ID 1

Les entités routes ne doivent pas contenir de doublons. Ce critère est implémenté avec la vérification Duplicate Feature (Entité en double) dans le cadre de la recherche d’entités d’axe médian de route contenant des géométries correspondantes et des valeurs attributaires identiques.

Pour implémenter le critère ID 1, procédez comme suit :

  1. In the Catalog pane, expand the Naperville feature dataset in the enterprise geodatabase, right-click the RoadCenterline feature class, and click Data Design > Attribute Rules.

    The Attribute Rules tab appears for the Road Centerline feature class.

    Remarque :

    In the following steps, the fully qualified enterprise geodatabase feature layer names may appear different, such as datareviewer_tutorial.sde.RoadCenterline.

    Conseil :

    The Data Design options are also available by right-clicking a feature class in the Contents pane.

  2. Sur l’onglet Règles attributaires, dans le groupe Ajouter des règles, cliquez sur la bibliothèque déroulante Règles prêtes à l’emploi Règles prêtes à l’emploi pour afficher les vérifications automatisées ArcGIS Data Reviewer.
    Remarque :

    Le contenu de la bibliothèque Règles prêtes à l’emploi est une bibliothèque intelligente qui varie en fonction de la source de données choisie.

  3. Dans la bibliothèque Ready to Use Rules (Règles prêtes à l’emploi), dans la section Validation (Validation), cliquez sur Duplicate Feature (Dupliquer l’entité) Dupliquer entité pour ajouter une nouvelle règle.
    Vérification Dupliquer l’entité dans la bibliothèque des Règles prêtes à l’emploi

    La nouvelle règle apparaît dans la vue Règles attributaires avec un en-tête de ligne rouge indiquant que des paramètres obligatoires sont manquants dans la configuration de la règle.

    Vue Règles attributaires avec des paramètres obligatoires manquants
  4. Dans la section Check Parameters (Paramètres de vérification), cliquez sur la flèche de la liste déroulante Features to Compare (Entités à comparer) et sélectionnez RoadCenterline.
    Paramètre Entités à comparer
  5. In the Details section, configure the properties that will store results for features that fail validation.
    1. Type Road features must not contain duplicates in the Name text box.
    2. Type This is a duplicate feature. Delete one of the features. in the Description text box.
    3. Click the Severity(1-High, 5-Low) drop-down arrow and choose 2 to set the relative importance for results of this type compared to others.
    4. Type LGIM 2024, thematic accuracy, attributes in the Tags text box and press Enter.
      Conseil :

      Tags can be used to keep track of requirements. Consider including the data model and version that the rule is related to or including an ISO-19157 data quality element, such as thematic accuracy.

  6. Dans l’onglet Attributes Rules (Règles attributaires), dans le groupe Attributes Rules (Règles attributaires), cliquez sur Save (Enregistrer) Enregistrer pour enregistrer les nouvelles règles.

Once the first attribute rule is authored, the error layers are automatically generated in the enterprise geodatabase. You may need to refresh the connection to see it.

Implement requirement ID 2

The second requirement, building footprints must be within the tax parcel, is implemented with the Feature On Feature check to find building footprints that are not within the tax parcel.

Pour implémenter le critère ID 2, procédez comme suit :

  1. In the Catalog pane, expand the Naperville feature dataset in the enterprise geodatabase, right-click the BuildingFootprint feature class, and click Data Design > Attribute Rules.

    The Attribute Rules tab appears for the Building Footprint feature class.

  2. On the Attribute Rules tab, in the Add Rules group, click the Ready to Use Rules Règles prêtes à l’emploi drop-down arrow to display the gallery containing ArcGIS Data Reviewer automated checks.
  3. In the Validation section, click Feature On Feature Entité sur entité to add a new rule.

    Feature On Feature check in the Ready to Use Rules gallery

    The new rule appears in the Attribute Rules view with a red row header, indicating that required parameter values are missing from the rule's configuration.

  4. In the Check Parameters section, click the Features to Compare drop-down arrow and choose Parcels.
  5. Click the Spatial Relationship drop-down arrow and choose Within.
  6. Check the Invert Relationship check box to find scenarios where building footprints are not within tax parcels.
  7. In the Details section, configure the properties that will store results for features that fail validation.
    1. Type Building footprints must be within a tax parcel in the Name text box.
    2. Type Building footprints must be completely within a tax parcel. Move the building footprint into a tax parcel. in the Description text box.
    3. Click the Severity(1-High, 5-Low) drop-down arrow and choose 3 to set the relative importance for results of this type compared to others.
    4. Type LGIM 2024, thematic accuracy, attributes in the Tags text box and press Enter.
      Conseil :

      Tags can be used to keep track of requirements. Consider including the data model and version for which the rule is related, or including an ISO-19157 data quality element, such as thematic accuracy.

  8. Dans l’onglet Attributes Rules (Règles attributaires), dans le groupe Attributes Rules (Règles attributaires), cliquez sur Save (Enregistrer) Enregistrer pour enregistrer les nouvelles règles.

Implement requirement ID 3

Le troisième critère, Les valeurs attributaires Full Road Name d’axe médian de route doivent correspondre à l’index principal des rues, est implémenté par la vérification Attribut Table vers table. La configuration recherche des routes locales contenant des valeurs de nom de route introuvables dans une liste officielle de noms de route de la municipalité.

Pour implémenter le critère ID 3, procédez comme suit :

  1. In the Catalog pane, expand the Naperville feature dataset in the enterprise geodatabase, right-click the RoadCenterline feature class, and click Data Design > Attribute Rules.

    The Attribute Rules tab appears for the RoadCenterline feature class.

  2. On the Attribute Rules tab, in the Add Rules group, click the Ready to Use Rules Règles prêtes à l’emploi drop-down arrow to display the gallery containing ArcGIS Data Reviewer automated checks.
  3. Dans la bibliothèque Ready to Use Rules (Règles prêtes à l’emploi), dans la section Validation (Validation), cliquez sur Table to Table Attribute (Attribut Table vers table) Attribut Table vers table pour ajouter une nouvelle règle.
    Vérification Attribut Table vers table dans la bibliothèque des règles prêtes à l’emploi

    La nouvelle règle apparaît dans la vue Règles attributaires avec un en-tête de ligne rouge indiquant que des paramètres obligatoires sont manquants dans la configuration de la règle.

  4. Configurez un filtre sur la classe d’entités Axes médians de routes pour que la validation renvoie uniquement les résultats sur les routes locales.
    1. Dans la section Input Filters (Filtres en entrée), cliquez sur New attribute filter (Nouveau filtre attributaire).
    2. Créez la clause suivante : Road Class is equal to Local-Local.
    3. Cliquez sur Verify the SQL expression is valid (Vérifier que l’expression SQL est valide) Vérifier que l’expression SQL est valide pour valider l’expression SQL.
    4. Cliquez sur Apply (Appliquer).
  5. Dans la section Check Parameters (Paramètres de vérification), créez la relation entre la classe Master Road Name (Nom de route principal) et le nom de route complet.
    1. Cliquez sur le menu déroulant Entités à comparer et sélectionnez MasterRoadName.
    2. Dans la section Relation attributaire, cliquez sur Nouvelle relation attributaire et créez la requête SQL suivante : Nom de route complet est égal à Nom de route complet.
    3. Cliquez sur Verify the SQL expression is valid (Vérifier que l’expression SQL est valide) Vérifier que l’expression SQL est valide pour valider l’expression SQL.
    4. Cliquez sur Apply (Appliquer).
  6. Cochez la case Invert relationship (Inverser la relation) pour recherche les scénarios dans lesquels le nom de route principal ne correspond pas au nom de route complet.
  7. In the Details section, configure the properties that will store results for features that fail validation.
    1. Type Road name missing from master street list in the Name text box.
    2. Type This check fails if the full road name is not found in the master street index. Provide a valid road name. in the Description text box.
    3. Click the Severity(1-High, 5-Low) drop-down arrow and choose 1 to set the relative importance for results of this type compared to others.
    4. Type LGIM 2024, thematic accuracy, attributes in the Tags text box and press Enter.
      Conseil :

      Tags can be used to keep track of requirements. Consider including the data model and version for which the rule is related or including an ISO-19157 data quality element, such as thematic accuracy.

  8. Dans l’onglet Attributes Rules (Règles attributaires), dans le groupe Attributes Rules (Règles attributaires), cliquez sur Save (Enregistrer) Enregistrer pour enregistrer les nouvelles règles.
  9. Close the Attribute Rules tab to close the rule design and keep ArcGIS Pro open to continue to the next tutorial.

In this exercise, you created and configured an enterprise geodatabase and authored three validation attribute rules. You will use these rules in the next tutorial to publish and evaluate the rules in a feature service.

Rubriques connexes