Please enable JavaScript to view this site.

Version:

Navigation: Activities > Activity Reference

Get Coordinates From Geocoordinate String Activity

Prev Top Next More

Description

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

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.

Inputs

Url

Required

Type: String

The URL of the ArcGIS geometry service.

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

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.

* 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

coordinates

Type: Number[][]

The XY-coordinate pairs of the converted strings.

Properties

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

Connectivity Requirements

This activity does not work 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 (220a4365)