Location functions

The following sections contain ArcGIS Arcade expressions that allow you to retrieve job location information managed by ArcGIS Workflow Manager. These expressions can be used for reporting and in tandem with geoprocessing tools and services to perform analysis.

GeoJsonToEsriJson

The GeoJsonToEsriJson expression converts the geometry of the first feature in the specified feature collection that matches the specified geometry type from GeoJSON to EsriJSON format and returns it.

Parameters

GeoJsonToEsriJson(feature_collection, geometry_type)

NameExplanationData type

feature_collection

The feature collection that contains the geometry to be converted.

String

geometry_type

The type of geometry to convert.

String

Output

Converts the geometry of the first feature in the specified feature collection that matches the specified geometry type from GeoJSON to EsriJSON format and returns it as a string.

Expression sample

The following expression converts a point feature from the current job's extended property table from GeoJSON to EsriJSON format:

GeoJSONToEsriJson(JobExtendedProperty($Job, 'assets', 'geojson'),'Point')
Example output
{\"x\":1.1354588060913904e7,\"y\":55660.45186542052}

JobLocation

The JobLocation expression returns the extent of the job location's geometry.

Note:

This expression only returns the extent of the job's location and does not return the job's location geometry.

Parameters

JobLocation(job_id)

NameExplanationData type

job_id

The ID of the job.

String

Output

Returns an extent object constructed from the job's location in MinX, MinY, MaxX, MaxY, WKID format.

Expression sample

The following expression returns the extent of the current job's location:

JobLocation($Job)
Example output
9862243.197380835,5108823.353604797,-9801843.791879544,5133768.0805264525,3857

Related topics