Tutorial summary
In this tutorial, you will publish the feature service and evaluate the neighborhood street data using the three checks you created in the previous tutorial, Create validation rules in an enterprise geodatabase. You will do this by preparing a map for publishing and evaluating rules in ArcGIS Pro and ArcGIS Enterprise.
注意:
エンタープライズ ジオデータベースまたはフィーチャ サービスへのアクセス権がない場合、または ArcGIS Enterprise の基本的な操作に慣れていない場合は、ArcGIS Pro の ArcGIS Data Reviewer のクイックスタート チュートリアルをご参照ください。
予定時間 | 25 minutes |
ソフトウェア要件 | 最小バージョンは ArcGIS Pro 3.3 および ArcGIS Enterprise 11.3 以降 |
ライセンス要件 | ArcGIS Pro:
ArcGIS Enterprise:
注意:このチュートリアル シリーズを実施するには、ArcGIS Advanced Editing ユーザー タイプ エクステンションが必要です。 |
データ要件 | このチュートリアルのデータは、「ArcGIS Data Reviewer for Enterprise Tutorial」ページから取得できます。 このパッケージには、プロジェクト パッケージと地方自治体サンプル データのサブセットが含まれています。 データをダウンロードするには、次の手順に従います。
|
Open the project
この演習では、ファイル ジオデータベースでモデル化されたデータを含む ArcGIS Pro を使用してプロジェクト パッケージを開き、そのコンテンツを確認します。
- ArcGIS Pro を起動します。
- 必要に応じて、Enterprise アカウントを使用して ArcGIS Pro にサイン インします。
注意:
このチュートリアルは、最初のチュートリアル「エンタープライズ ジオデータベースでの検証ルールの作成」に基づいています。 このシリーズを続行するには、最初のチュートリアルを実施する必要があります。 最初のチュートリアルから Data Reviewer for ArcGIS Pro と ArcGIS Pro チュートリアル データをダウンロードしていない場合は、上記のデータ要件を確認し、最初のチュートリアルを実施してください。
Integrate data quality management in a feature service
Before you can share the features as web layers, you must prepare the map that you are going to publish. In this workflow, you will open an existing map and prepare it for publishing by adding feature layers and configuring map properties.
To add layers to the map, complete the following steps:
- DataReviewerTutorial.ppkx ファイルがまだ開いていない場合は、ArcGIS Pro で開きます。
注意:
以降のステップを実施するには、最初のチュートリアル「エンタープライズ ジオデータベースでの検証ルールの作成」を実施する必要があります。 次のステップに進む前に、最初のチュートリアルを実施してください。
- In the Catalog pane, expand Maps, right-click the Naperville_Services map and click Open if it is not already open.
The Naperville Service map opens.
- In the Catalog pane, expand Databases, and expand the DataReviewer_Tutorial enterprise geodatabase you created and the Naperville feature dataset if it is not already expanded.
- Press Ctrl while clicking the AddressPoints, BuildingFootprint, Parcels, and RoadCenterline feature classes from the enterprise geodatabase to select several feature classes at once.
- Right-click any of the selected feature classes and click Add To Current Map.
The data sources are added to the Naperville_Services map.
- In the Catalog pane, right-click the MasterRoadName table and click Add To Current Map.
The table is added to the Contents pane.
注意:
The MasterRoadName table must be included in the map to support evaluation of road centerline features for data quality requirement ID 3: Road centerline Full Road Name attribute values must match the master street index. This data quality requirement was created in the previous tutorial, Create validation rules in an enterprise geodatabase.
- In the Catalog pane, press Ctrl while clicking each of the following attribute rule error layers: GDB_ValidationLineErrors, GDB_ValidationObjectErrors, GDB_ValidationPointErrors, and GDB_ValidationPolygonErrors.
注意:
If you authored attribute rules from the first tutorial and do not see the attribute rule error layers, right-click the enterprise geodatabase and click Refresh.
- Right-click any of the selected feature classes and click Add To Current Map.
The data sources are added to the Naperville_Services map.
注意:
The attribute rule error layers must be included in the map to enable the validation service data quality capabilities on the web layers.
- In the Contents pane, right-click the BuildingFootprint layer and click Zoom To Layer.
Arrange layers for the feature service
Next, you will rename and rearrange the layers to reflect how they appear in the published web service.
To arrange the layers, complete the following steps:
- Right-click the layer in the Contents pane and click Properties.
- On the Layer Properties dialog box, edit the layer name to remove the fully qualified dataset portion of the layer name, and click OK.
For example, the fully qualified name, datareviewer_tutorial.sde.RoadCenterline, would be renamed RoadCenterline.
ヒント:
You can edit a layer name from the Contents pane by clicking the layer to select it, then clicking it again to rename it.
- Repeat the previous step for all layers that would expose the fully qualified dataset name when the service is published.
- In the Contents pane, drag the layers to arrange them in the following order if necessary:
Order Layer name 1
Validation Point Errors
2
Address Points
3
Validation Line Errors
4
Road Centerlines
5
Validation Polygon Errors
6
Parcels
7
Building Footprints
8
Validation Object Errors
9
Master Road Name
In ArcGIS Pro, you can share a map that contains multiple layers as a web service. When you share a web service, the layers in the map become service sublayers. Each sublayer is identified by a unique numeric ID that allows you to use or reference it in a web map or application. For example, you can reference a service sublayer by the URL https://<service-url>/<layerID>.
By default, each layer that you share is automatically assigned an ID based on its drawing order in the Contents pane, beginning with 0 for the first layer. If you share selected layers from the map, the IDs are based on the sequence of the selected layers, including any group layers they are contained in.
Assign layer IDs
To assign layer IDs that will remain static as the map is modified, complete the following steps:
- In the Contents pane, right-click the Naperville Services map and click Properties.
- On the Map Properties dialog box, on the General tab, check the Allow Assignment Of Unique Numeric IDs For Sharing Web Layers check box.
- Click OK.
Sequential IDs are assigned to each layer in the map.
Publish the map to a feature service
A feature service allows you to expand the Data Reviewer capabilities to other members of your organization. As a publisher of a feature service, you can decide what functionality is available to organization members who use the feature service. When others access the feature service, they can view the data or run the validation attribute rules you created. To enable these capabilities, you must publish and share the feature service.
注意:
Icons are unavailable if you are not signed in to your Enterprise account and do not have publishing or administrative privileges.
To publish the map to a feature service, complete the following steps:
- In ArcGIS Pro, verify that the Naperville_Services map is open and active.
- On the ArcGIS Pro ribbon, click the Share tab.
- In the Share As group, click the Web Layer
drop-down arrow and click Publish Web Layer
.
The Share As Web Layer pane appears.
- Type Naperville_Services in the Name text box on the General tab of the Share As Web Layer pane.
- Optionally, provide a summary and add tags in the Summary and Tags text boxes.
- In the Reference registered data section, ensure that Map Image is selected, and check the Feature check box to share the web feature layer as a dependent layer to the map image layer.
注意:
For web feature layers to use attribute rules, they must reference registered data sources. This ensures that the data is not copied during the publishing process and is directly referenced by the service.
- In the Location section, choose the storage location for the web layer in the Portal Folder and Server and Folder drop-down menus.
By default, the web layer is saved to your root folder in My Content.
ヒント:
To save the web layer to a different folder in My Content, type the folder name or browse to an existing folder.
- [共有レベル] で、Web レイヤーを共有する方法を指定します。
- [所有者] - そのアイテムにアクセスできるのは、所有者 (および他のメンバーが所有しているコンテンツを表示する権限のある組織のメンバー) だけです。 これがデフォルトのオプションです。
- [組織] - コンテンツを組織内のすべての認証済みユーザーと共有します。 このオプションは、組織アカウントでサイン インした場合に使用できます。
- [すべてのユーザー (パブリック)] - コンテンツが一般公開されます。 誰もがコンテンツにアクセスして、表示することができます。
- 必要に応じて、[グループ] で自分が所属するグループを選択して、そのメンバーとコンテンツを共有します。
- On the Configuration tab, in the Configure Layers group, in the Capabilities section, check the Version Management and Validation check boxes.
The Version Management service is required to activate the data quality management capabilities provided by the Validation service.
- Optionally, click the Content tab to view the new web layers and their associated layer identifiers.
- Click Analyze to check for errors.
Errors appear on the Messages tab. Right-click the error message to access information about the error or warning message and review suggested fixes.
注意:
If you have not registered the enterprise geodatabase with the data store, you can click Options
next to the error message, and choose Register Data Source with Server to register it.
- When the information and content pass validation, click Publish to share the datasets as web layers.
In this exercise, you prepared the map for publishing by opening an existing map, adding feature layers to it, and configuring the map's properties to assign layer IDs. You shared the map to your Enterprise portal with version management and validation capabilities. These capabilities will be used in the next tutorial, Error management in ArcGIS Server, to manage data editing workflows and evaluate the quality of data shared across your organization.