方法

ArcGIS Pro のフィーチャクラスのデータを使用し、ArcGIS Online のホスト フィーチャ レイヤーを更新する

Last Published: July 21, 2023

サマリー

In some cases, an ArcGIS Online hosted feature layer must be constantly updated with data from an external feature class to ensure the feature layer is always updated with the latest data. For example, in a continuous data collection project where the collected features and data are recorded continuously in the external feature class, the latest recorded data must be updated to the hosted feature layer in ArcGIS Online.

In ArcGIS Pro, the Append tool can be used to load new data from the external feature class to the existing hosted feature layer, provided the hosted feature layer and the external feature class have the same field schema and both contain a Global ID field. If the external feature class does not have the same field schema as the hosted feature layer, refer to ArcGIS Pro: Alter the schema of a database table for steps to edit the field schema.

The instructions provided describe how to update a hosted feature layer in ArcGIS Online with data from an external feature class in ArcGIS Pro.

手順

The following figure shows some attributes of a hosted feature layer in ArcGIS Online that must be updated with new data from the external feature class. The existing hosted feature layer contains 64 point features, representing the distribution of schools within the area.

The number of features in the original hosted feature layer.
  1. In ArcGIS Pro, add the feature class containing the data to load to the hosted feature layer.
  2. Add Global IDs to the feature class using the Add Global IDs tool. Skip this step if the feature class contains a Global ID field.
    1. On the top ribbon of ArcGIS Pro, click the Analysis tab > Tools. The Geoprocessing pane opens.
    2. In the Geoprocessing pane, click the Toolboxes tab, and navigate to Data Management Tools > Fields > Add Global IDs.
    3. In the Add Global IDs tool pane, select the feature class for Input Datasets.
    4. Click Run.
  3. Sign in to ArcGIS Online. Refer to ArcGIS Pro: Add a portal connection for steps to sign in to ArcGIS Online in ArcGIS Pro.
  4. Add the hosted feature layer to the map.
    1. On the top ribbon of ArcGIS Pro, click the View tab > Catalog Pane. The Catalog pane opens.
    2. In the Catalog pane, click the Portal tab, and click My Content The My Content button..
    3. Search or select the hosted feature layer to update, right-click the feature layer, and click Add To Current Map.
  5. Load the data from the external feature class to the hosted feature layer using the Append tool.
    1. In the map or the attribute table of the feature class, select the features to be updated to the hosted feature layer. To select features, refer to ArcGIS Pro: Select features interactively or ArcGIS Pro: Select features using attributes. The selected features are highlighted in the map and attribute table.
The selected features in the attribute table.
  1. In the Geoprocessing pane, click the Toolboxes tab, and navigate to Data Management Tools > General > Append.
  2. In the Append tool pane, select the feature class as Input Datasets.
  3. Select the added hosted feature layer as Target Dataset.
  4. Leave the Schema Type by default, and click Run.
The Append dialog box.
  1. Click the Refresh The Refresh button. button to refresh the map. The appended data are immediately updated in the feature layer. To view the updated data, open the hosted feature layer in ArcGIS Online, and click the Data tab in the feature layer item details page. Refer to ArcGIS Online: Work with attribute data for more information.

The following figure shows the attributes of the hosted feature layer have been updated with data from the external feature class. The number of features in the hosted feature layer is updated to 78 features.

The updated number of features in a hosted feature layer.

記事 ID:000020494

ArcGIS の専門家からヘルプを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動