Skip to main content

Stream Layer

The Stream Layer output in ArcGIS Velocity allows you to write output features to a new stream layer. A new stream layer is created when the output is saved. Once the stream layer is created, you can use it in Velocity and in your ArcGIS Online organization for use in web maps, applications, and so on.

Examples

The following are example use cases for the output:

  • After ingesting event data from Internet of Things (IoT) sensors through a feed and processing and analyzing the data in a real-time analytic, you can send the features to a stream layer for visualization in a dashboard.

  • You manage a variety of stationary assets with attribute values that frequently update. You can configure a Stream Layer output and choose a related feature layer and join field so that the resulting sensor observations have attributes and geometry.

  • You configured a feed and a real-time analytic to process events as they occur. You can use a stream layer to visualize only the latest state of the features with a specific track ID.

Usage notes

Note the following when working with the output:

  • Configuring a related feature layer and join field is optional. If you do not need a related feature layer, click Next without choosing a layer.

  • If you choose a related feature layer and join field, the outgoing data schema must contain the related join field. You can visualize outgoing data in a web map only when the field names and values are identical. For example, if you choose a SensorID join field on the related feature layer, the outgoing data schema must contain a SensorID field.

  • Configuring a feature layer to keep the latest observation for each track ID is optional. If you configure one, Velocity saves the most recent observations in a companion feature layer. When you add the stream layer to a web map, the map displays features from the companion feature layer until new features arrive on the stream layer.

  • The Simplify feature geometry parameter is only available after you check the Also publish a feature layer which keeps the latest observation for each Track ID parameter. If your feature geometries are already simple, you can leave this parameter off to improve write performance.

Note:

Parameters

The following table describes the parameters for the output:

Parameter

Description

Data type

Stream layer name

The name of the new stream layer.

String

Select a related feature layer to provide geometry when stream layer is drawn in a map

(Optional)

The item ID or URL of a related feature layer.

String

Simplify feature geometry

Simplifies feature geometries to ensure that Velocity writes them to the database correctly. If you know the feature geometries are already simple, you can leave this parameter turned off to improve write performance.

This parameter is available in the Geometry options section when you check the Also publish a feature layer which keeps the latest observation for each Track ID check box. It applies to the companion feature layer that stores the latest observation for each track ID.

Boolean

Also publish a feature layer which keeps the latest observation for each Track ID

Specifies whether Velocity creates a companion output feature layer to store the most recent observation for each track ID.

Boolean

Related join field

(Optional)

The field in the related feature layer that the client application uses to join geometry to the observation.

The field name must match a field in the output feature schema from the real-time analytic.

String

Considerations and limitations

Consider the following when using the output:

  • You cannot share the stream layer publicly.

  • If you check the Also publish a feature layer which keeps the latest observation for each Track ID check box, the stream layer output name must be unique within the organization.

  • To ensure reliable processing, individual messages are limited to 8 MB. Any message that exceeds this limit is not delivered and generates an error in the logs.