Stream Layer

Features in a Stream Layer feed originate from a stream layer in an ArcGIS organization.

Examples

The following are example use cases for the feed:

  • Configure a feed referencing a stream layer output from an ArcGIS Velocity real-time analytic.
  • Add a publicly accessible stream service published from ArcGIS GeoEvent Server to ArcGIS Online as a stream layer item and configure a feed referencing that stream layer.

Usage notes

Keep the following in mind when working with the feed:

  • The feed subscribes to a stream layer's stream service to receive features as they are broadcasted by the stream service.
  • To load an Enterprise stream layer, add the stream service URL as an ArcGIS Online item.
  • When choosing a stream layer item, filter by your folders, favorites, groups, organization, or for all features from ArcGIS Online. You can further filter by the date modified, date created, and tags.

Learn more about defining the schema and key fields to configure input data

Parameters

The following are the parameters for the feed:

ParameterDescriptionData type

WHERE clause

(optional)

A Structured Query Language (SQL) where clause is similar to an SQL expression that is used to filter features received from the stream layer.

Supported operations for stream layers include the following:

  • ( '<=' | '>=' | '<' | '>' | '=' | '!=' | '<>' )
  • (AND | OR | NOT | LIKE)
  • (IS NULL | IS NOT NULL)
  • (IN)

Learn more about the WHERE filter

String

Out fields

(optional)

A comma-separated list of fields from the stream layer that will be loaded into Velocity.

If no fields are specified, all fields will be loaded. The following is an example:

OBJECTID,device_id,timestamp,horizontal_accuracy,latitude,longitude

String

Output spatial reference

(optional)

Specifies the well-known ID (WKID) of a spatial reference.

Velocity loads data from the stream layer in the spatial reference defined by this parameter, for example, 4326.

String

Extent

(optional)

Specifies the extent filter for incoming data broadcast by the stream service.

This parameter is important if there is a large amount of data outside an area of interest you do not want to process.

The geometry must be the Esri JSON Envelope geometry type. The following is an example:

{ "xmin": -104, "ymin": 35.6,
  "xmax": -94.32,
  "ymax": 41, "spatialReference": { "wkid": 4326
  }
}

String

Consideration and limitation

If the stream layer references an ArcGIS Online stream service, the service must be unsecured.