Please enable JavaScript to view this site.

Version:

Navigation: Activities > Activity Reference

Calculate Distance Activity

Prev Top Next More

Description

Calculates the shortest planar distance between two geometries.

Usage

You may need to calculate the distance between two points. You could take two points from a user using a Display Form activity and a Geometry Picker form element and calculate the distance using the Calculate Distance activity.

Inputs

Geometry1

Required

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

The first geometry.

Geometry2

Required

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

The second geometry.

Unit

Optional

Type: String | Number

Measurement unit of the return value.

Defaults to the units of the input geometries.

Known values: meters | feet | kilometers | miles | nautical-miles | yards.

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

Outputs

distance

Type: Number

The distance between the two geometries.

* VertiGIS Studio 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.

Connectivity Requirements

This activity works when the device has intermittent connectivity to the network.

Version Information

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

© 2024 VertiGIS North America Ltd. All Rights Reserved. | Privacy Center | Imprint
Documentation Version 5.42 (58a5caf5)