Distance Task Activity

Description:

Uses the ArcGIS Geometry Service to calculate the shortest distance between two geometries.

Inheritance Hierarchy:

System.Object
  System.Activities.Activity
    System.Activities.CodeActivity
      Geocortex.Workflow.Activities.DistanceTask

Function:

This activity computes the shortest distance between geometries using the specified units.

In a Workflow:

After performing a query to obtain a set of features, this activity can be used to compute the distances of each feature from another location.

Properties:

Name Description

In Arguments

Credentials

The network credentials that are sent to the host and used to authenticate the request.

Custom Parameters

Additional parameters to include in the request.

Disable Client Caching

If true, adds a timestamp parameter (_ts) to the request to prevent it from being loaded from the application's cache.

Distance Unit

The unit for measuring distance between Geometry 1 and Geometry 2. If the unit is not specified, it is derived from the Spatial Reference.

Geodesic

Calculate distance based on a geodesic coordinate system.

Geometry 1

The geometry from where the distance is to be measured.

Geometry 2

The geometry to which the distance is to be measured.

Geometry Service Url

The URL of the ArcGIS Server Geometry service. For example: http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer.

Proxy Url

The URL to proxy the request through.

Token

The token for accessing a secure ArcGIS task.

Misc

Display Name

DistanceTask

You can change the name of an activity to one that describes what it does. A descriptive name can make a workflow easier to interpret and maintain.

Out Arguments

Result

The calculated distance.

Version Information:

Supported from: Geocortex Essentials 3.8.