Get Coordinates From Geocoordinate String Activity

Description

Converts an array of well-known strings into xy-coordinates based on the conversion type and spatial reference supplied by the user.

Requires ArcGIS Server 10.3+.

Usage

You may need to convert a geocoordinate string into coordinates. You could get a geocoordinate string from user input using a Display Form activity and the Text Box form element then convert the string into coordinates using the Get Coordinates From Geocoordinate String activity.

Offline Support

This activity does not work when the device is offline.

Inputs

Url

Required

Type: String

The URL of the ArcGIS geometry service.

For example, https://utility.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer.

Requires ArcGIS Server 10.3+.

Strings

Required

Type: String[]

An array of formatted strings as specified by Conversion Type.

For example: ["01N AA 66021 00000" , "11S NT 00000 62155" , "31U BT 94071 65288"].

Spatial Reference

Optional

Type: String | Number | esri.SpatialReference (3.x, 4.x)*

The spatial reference to convert the input string coordinates to.

Conversion Type

Optional

Type: "mgrs" | "usng" | "utm" | "geo-ref" | "gars" | "dms" | "ddm" | "dd" | String

The conversion type of the input strings.

The default value is mgrs.

Possible values: mgrs | usng | utm | geo-ref | gars | dms | ddm | dd.

Conversion Mode

Optional

Type: String

Conversion options for mgrs, utm, and gars conversion types. See http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#//02r30000026z000000 for valid values and their descriptions.

* Geocortex Workflow uses different versions of Esri's ArcGIS API for JavaScript depending on the type of application. Web AppBuilder 2D apps and Geocortex HTML5 viewers use version 3.x of the JavaScript API. Web AppBuilder 3D apps use version 4.x.

Outputs

coordinates

Type: Number[][]

The XY-coordinate pairs of the converted strings.

* Geocortex Workflow uses different versions of Esri's ArcGIS API for JavaScript depending on the type of application. Web AppBuilder 2D apps and Geocortex HTML5 viewers use version 3.x of the JavaScript API. Web AppBuilder 3D apps use version 4.x.

Properties

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

Version Information

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

© 2018 Latitude Geographics Group Ltd. All Rights Reserved.

Documentation Version 5.9