Share and use a topology

You can publish a topology as part of a web feature layer (feature service) that references a registered enterprise geodatabase.

Learn how to create a topology

Note:
The workflow outlined below is only supported when your data is registered as branch versioned and the topology in the web feature layer will be consumed, edited, and validated through a services-oriented architecture using a feature service.

When you include the topology, you can add the web feature layer to a map in ArcGIS Pro to validate the topology and correct error features. Currently, when you add the web feature layer to any other client, you cannot access the topology through the feature service.

To publish the topology as part of a web feature layer, the data and your map must meet the requirements described below.

Prepare for publishing

When you publish and consume a topology in the web feature layer, conditions and prerequisites apply. Before you add the topology and the feature classes that participate in the topology to the map, follow the steps below to ensure that the data meets these requirements and to prepare your environment for the publishing process.

Prerequisite:

  1. Before you add your topology to the map, set the versioning type of your geodatabase connection to Branch and register the feature dataset, which contains the topology and the feature classes that participate in the topology, as branch versioned.

    Note:
    • Branch versions can only be edited using feature services. If the versioning type of your geodatabase connection is not set to branch versioning, you cannot edit your topology once it's published.
    • If you switch from traditional to branch versioning with your topology already in the map, you must add your topology to a new map to detect the new database connection properties.

    Learn more about branch versioning

  2. Right-click the topology in the Catalog pane, and click Add To New Map to add the topology to a new map.

    You do not need to add each associated layer to the map. When you add the topology to the map, all associated layers are added as well.

    Note:
    • All feature classes that participate in the topology must be added to the map before you publish. Each feature class can only be added to the map once. For example, if you add the same feature class to the map twice so you can apply different symbology to each layer, you cannot publish the topology in the feature service.
    • The data owner of the topology must add the topology to the map before you publish.
    • You can have only one topology in the map before you publish.

    Learn more about topology in ArcGIS

  3. Register your enterprise geodatabase as a data store with your server. The topology in the web feature layer must reference data from registered data sources.

    You can also register your enterprise geodatabase as a data store when publishing or analyzing your data. An analyzer error message appears in the Share As Web Layer pane if your database is not registered with the server. To register your data sources, click Options > Register Data Source wIth Server on the error message.

Publish the topology as a feature layer

To publish a topology as part of a web feature layer, follow these steps. See Share a web feature layer for a detailed workflow that references registered data to a federated server on your active portal.

  1. Ensure that the topology and all its associated feature classes are added to the current map view.
  2. Click the Web Layer drop-down arrow on the Share tab and click Publish Web Layer.
    Note:

    The topology in the map must be connected to the default version for publishing.

  3. In the Share As Web Layer pane, add a web layer name, a summary, and tags, which are the minimum required attributes when publishing web layers.
  4. Under Data and Layer Type, confirm that Map Image is selected under Reference registered data. Click Feature to share the web feature layer as a dependent layer to the map image layer.
  5. Under Location, choose where to share your data.
  6. Under Share with, choose who you want to share this service with.
  7. On the Configuration tab, under the Configure Layers icon Layer, check the Version Management and Validation check boxes under Capabilities.

    Note:
    • You must enable the Version Management and Validation capabilities to validate the topology in the web feature layer. You can disable these capabilities but, if you do, you cannot validate your topology through the feature service. Also, you cannot enable only one of these capabilities when publishing a topology as part of a web feature layer; either enable both or disable both.
    • The Version Management and Validation capabilities are not available if the feature dataset containing the topology is not branch versioned. Ensure that the topology has been added to the map from a branch versioned database connection.
    • You can publish the topology as a read-only feature service if both the version management and validation capabilities are unchecked.

  8. On the Configuration tab, under the Configure Pooling icon Configure Pooling, ensure that Dedicated instance is selected under Instance Type.
    Shared instance pools do not support version management and validation.
  9. Optionally, see configure web layer properties for the location and steps to change these default configuration.

    Note:
    • The Include topology layer option must be checked when you publish. If you uncheck this option, you can still publish a web feature layer, but it will not contain the topology.
    • You cannot take a topology offline. If you enable sync on the web feature layer and take it offline, the topology will not be included in your offline map.

  10. Under Finish Sharing, click Analyze to check for problems.

    Errors and warnings are listed on the Messages tab. Right-click a message to open its help topic or take corrective action in the software. Errors Error must be resolved before you can share the web layer. Resolving warnings Warning is recommended but not required.

    Learn more about analyzing GIS resources

  11. Once you resolve errors and optionally resolve warnings and validate, click Publish to share your web layers.
  12. Once the web layer has been successfully published, click the Manage the web layer link to manage the web feature layer through your portal.
  13. Note:
    Since Reference registered data was selected earlier, the Manage the web layer link opens the item page for the map image layer.

Add the topology feature layer to the map

The topology is shared as a feature layer to an ArcGIS Enterprise portal. The feature service contains the topology feature layer and its associated feature classes. After publishing is complete, both the topology feature layer and map image layer are available.

To add the topology and its associated layers to the map, complete the following steps:

  1. Click the Portal tab in the Catalog pane.
  2. Locate and double-click the topology web feature layer to list the topology and its associated layers.

    Topology web feature layer

  3. Right-click the topology feature layer and click Add To New Map or add the topology to the current map.

Note:

When you add the topology feature layer to the map, all associated layers are automatically added as well.

View the properties of a topology feature layer

When a topology is published as a feature layer, the topology properties are read-only. For a list of available topology modification tasks, see the table in Common topology tasks.

To access and review these read-only properties, complete the following steps:

  1. Add the topology and its associated layers to the map.
  2. Right-click the topology layer in the Contents pane and click Properties, or double-click the topology layer name.

    Accessing the properties of a topology published as a web feature layer

    This opens the topology feature layer's properties.

    General tab in the topology feature layer properties

    Some of the key tabs listed on the Layer Properties dialog box for the topology web feature layer include the Feature Layers, Rules, and Errors tabs. These tabs are described in more detail in the sections below.

  3. Click the tab containing the properties you want to view and click OK when you are finished.

Feature Layers tab

The Feature Layers tab contains the following information:

  • XY cluster tolerance used in the topological processing operations
  • Number of x,y ranks in the topology
  • List of all feature layers associated with the topology feature layer
  • XY rank assigned to each participating feature layer

Feature Layers tab in the topology feature layer properties

Before publishing the topology, when the topology is initially created, you rank the feature classes in the topology to control how vertices are moved when they fall within the cluster tolerance of one another. Feature classes with a rank of 1 are considered to have the highest accuracy. Coordinate ranks allow you to ensure that reliably placed vertices are the anchor locations toward which less reliable vertices are moved during topology validation. For more information, see Topology in ArcGIS.

Rules tab

Topology rules define the permissible spatial relationships between features.

Rules tab in the topology feature layer properties

The Rules tab displays the topology rules defined on the feature layers and subtypes participating in the topology feature layer. From the Rules tab, you can save topology rules to a rule set file if needed.

Errors tab

The Errors tab includes a summary of errors and exceptions found in the topology once it is validated. If the topology has not been validated, Not Validated appears on the tab.

Errors tab on the topology feature layer properties shown before and after validating

Similar to the Rules tab, the table shows the topology rules and their participating feature classes and subtypes. The errors and exceptions associated with each topology rule are displayed on the right. Errors are generated when you validate a topology and a topology rule is violated. You can click the Export to file button to save the summary as a text file to create a record of the state of the topology at a given time. This is a useful way to document and monitor progress on a large topology editing project.

Tip:

Once a topology has been published as part of a web feature layer (feature service), you can validate, edit, and fix any errors through the feature service. Learn more about validating and fixing topology errors.