Cast Geometry Activity

Description

The Cast Geometry activity casts a geometry to a specific type.

Usage

A workflow could use the Display Form activity with a Geometry Picker form element to capture a point geometry. The type of the Geometry Picker’s value output is esri.Geometry (3.x, 4.x)*, not esri.Point (3.x, 4.x)*, even though the Geometry Picker is configured to capture a point. As a result, using the geometry as the input to an activity that expects a point geometry results in a type validation error in Designer. For example, using the geometry as the Location input to the Reverse Geocode activity would result in an error. To avoid the error, first use the Cast Geometry activity to return a properly typed point.

Inputs

Geometry

Required

Type: esri.Geometry (3.x, 4.x)*

The input geometry.

* Geocortex Workflow uses different versions of Esri's ArcGIS API for JavaScript depending on the type of host application. See Underlying Technologies for information.

Outputs

point

Type: esri.Point (3.x, 4.x)*

The geometry as a point.

polygon

Type: esri.Polygon (3.x, 4.x)*

The geometry as a polygon.

polyline

Type: esri.Polyline (3.x, 4.x)*

The geometry as a polyline.

extent

Type: esri.Extent (3.x, 4.x)*

The geometry as an extent.

multipoint

Type: esri.Multipoint (3.x, 4.x)*

The geometry as a multipoint.

* Geocortex Workflow uses different versions of Esri's ArcGIS API for JavaScript depending on the type of host application. See Underlying Technologies for information.

Properties

For information about the ID, Display Name, and Description properties, see Properties Common to all Activities.

Supported Environments

Environments capable of running this activity

Server

 

Client

Geocortex Web

Geocortex Mobile

Geocortex Viewer for HTML5

Web AppBuilder

Offline Support

This activity works when the device is offline.

Version Information

Supported from: Geocortex Viewer for HTML5 2.9, Web AppBuilder for ArcGIS 2.4.

© 2019 Latitude Geographics Group Ltd. All Rights Reserved.

Documentation Version 5.15