Sync feature layers

In CityEngine 2017.1 or later, you can add, update, and manage polygon feature layers hosted by ArcGIS Online. CityEngine allows you to do the following:

Sign in to ArcGIS Online in CityEngine to have access to publishing to ArcGIS Online or viewing the My Content, Group, or All Portal tabs in the Navigator.

Create a polygon feature layer for ArcGIS Online

You can create a polygon feature layer in ArcGIS Online directly in CityEngine.

  1. Create a new shape layer.
  2. To create new polygon features, click the polygonal creation tool. Alternatively, you can publish the polygon layer without creating polygon features.
  3. To publish the polygon layer in Scene Editor, right-click the Polygon layer→Create Feature Layer to open the Create new Feature Layer dialog.

  4. Fill out the necessary fields and click OK.

The feature layer (hosted) icon now displays indicating that a new polygon feature layer has been published to ArcGIS Online.

Once the polygon feature layer is published to ArcGIS Online, the layer schema can not be changed, such as adding or deleting new attribute fields.

Creating a new feature layer is currently only possible for ArcGIS Online. Create Feature Layer is only enabled when the active portal is ArcGIS Online.

Modify existing ArcGIS Online polygon feature layer

You can make edits to an existing ArcGIS Online polygon feature layer by adding the polygon layer to CityEngine, making changes, and synchronizing the layer with ArcGIS Online.

Add a polygon layer

To add a polygon feature layer from ArcGIS Online, do the following:

  1. Open Navigator.
  2. Right-click the polygon feature layer you want to edit.
  3. Choose Import.

CityEngine will add the polygon feature layer to the Scene Editor and indicate that the layer is ready for snychronization with the the feature layer (hosted) icon . If you don't see the polygon layer in the Scene Editor after Import, check the Log for further details.

Edit polygon layer

You can edit the features of a polygon layer inside CityEngine with any of the CityEngine tools, such as the Move, Scale, or Regular shape creation tools.

Make any of the following edits to polygon geometry in the layer:

To edit the polygon attributes, do the following:

  1. Select a polygon feature.
  2. Open the Inspector.
  3. Click Object attributes.
  4. Make edits to the attributes in the layer.

Sync polygon layer

Sync the local edits you made in CityEngine to the ArcGIS Online polygon layer.

  1. Open the Scene Editor.
  2. Right-click the polygon layer.
  3. Choose Synchronize.
  4. The polygon layer is updated in ArcGIS Online.

When you sync or create a polygon feature layer, CityEngine automatically validates the geometry using validation rules and operations for shapes, such as storing points counterclockwise or ensuring normals are facing up.

CityEngine can only synchronize Short and Long Integers, Double, Float, and Text type fields. Any attribute fields added or deleted will not update when you synchronize the polygon layer

With generated models based on an ArcGIS Online polygon feature layer, you can still edit and synchronize the polygon layer with the generated models visible. Turn off the models in CityEngine to help perform these edits.

Apply external updates

You can make external edits to a polygon layer, such as in ArcGIS Online or ArcGIS Pro, and apply the updates in CityEngine.

Make external updates

You can make external edits to both the geometry and attributes, such as in ArcGIS Pro.

In ArcGIS Online, you can make edits only to the attribute table of the polygon layer.

You can only add fields outside of CityEngine, such as in ArcGIS Pro or ArcGIS Online. If you do create new attribute fields outside of CityEngine, you need to remove and re-add the polygon layer in CityEngine in order for the changes to take affect.

Sync external edits

  1. Select the polygon layer in Scene Editor.
  2. Right-click the polygon layer.
  3. Choose Synchronize.

The polygon layer is updated in CityEngine and matches the external updates.

Local and server conflicts

There may be instances where there are conflicting edits to the polygon layer in both CityEngine and on the server. In this case, CityEngine displays a Synchronization Conflict message that gives you the option to choose whether you want to keep the local CityEngine or server version. The version you select becomes the master version in CityEngine and ArcGIS Online.

Managing polygon layer synchronization

For the synchronization feature to work, you need to ensure that the Edit and Sync settings are properly configured in ArcGIS Online.

  1. Open the polygon feature layer item in ArcGIS Online.
  2. Click Settings.
  3. Under Feature Layer (hosted) Settings, check Enable Editing and Enable Sync.
  4. Click Save.

You can also configure the Edit and Sync settings when you publish the polygon feature layer from ArcGIS Pro.

The exent of all the polygon features in the layer must be less then 500 kilometers.

Copyright ©2008-2018 Esri R&D Center Zurich. All rights reserved.