cancel
Showing results for 
Search instead for 
Did you mean: 

Changing units from meters to degree decimals in ArcGIS?

0 Kudos

Hi Expert,

We were trying to integrate ESRI to SAP Work Manager application.

We refer "SAP® EAM and service mobile app SDK Installation Guide" for Building a GIS Client for Android.

We successfully build the GIS Client for Android.

While Geo tagging a location from mobile device data is captured in unit (meters) as below but we want it in unit (degree decimals).

How we can change this units from meter to degree?

Thanks in Advance.

Regards,

Shubham

Accepted Solutions (1)

Accepted Solutions (1)

kunal_mehta
Explorer

Hello Shubham,

The coordinates returned are in spatial reference 102100 with units in meters. This is because the underlying map is in this spatial reference. If you need the coordinates in degree decimal, you can convert the geometry from spatial reference 102100 to 4326 using the geometry operations APIs available in the SDK. See https://developers.arcgis.com/android/10-2/guide/geometry-operations.htm for more information. As mentioned in this link, one can use GeometryEngine's project() API:

"There may be times when you have geometries in a map or service with a particular spatial reference and want to display them on a map with a different spatial reference. The geometry engine allows you to do this with a simple method call, project()."

Thanks

Kunal

Answers (2)

Answers (2)

mark_pe
Active Contributor

To: Kunal - Thank you for sharing your wisdom tied to this request. We will note your answer above.

- The link that was provided above is a good reference that points to the Geometric Operations link: https://developers.arcgis.com/ios/10-2/swift/guide/geometry-operations.htm

To Shubham - We valued Kunal's statement as he is very knowledgeable about ArcGIS and SAP Work Manager GIS items as a key developer.

This implies that the out of the box SAP Work Manager or EAM Mobile Add-On have limited capability out of the box to change it. From Kunal's statement, this can only be change from the ArcGIS SDK where customization may need to be done.

Thanks all.

mark_pe
Active Contributor
0 Kudos

Shubham,

Hello. If I have to put myself in the shoes of the GIS developer of SAP Work Manager, I would have to download the ArcGIS driver for me to call that into SAP Work Manager.

If we study the ArcGIS SDK the following options are what controls the GEO tagging format.

https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/geometry...

and

https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/geometry...

or: java.lang.Object ↳com.esri.arcgisruntime.geometry.CoordinateFormatter

Class Overview

Converts between Points and formatted coordinates notation strings such as decimal degrees; degrees, minutes, and seconds; U.S. National Grid (USNG); and Military Grid Reference System (MGRS).

With this assumption, I will then try to check SAP ConfigPanel if there is any Naming convention that may state GIS CoordinateFormatter or GIS Geometry.

From the above, all I gave is that in the ArcGIS SDK perspective that there is a technique OR a Method OR service you can use as a developer to change the format to decimal.

Then let us review from an SAP Perspective (Developers of the GIS feature of Work Manager):

From the main documentation: https://help.sap.com/viewer/19a2c3b8d44c490abbb249fd975ee2c9/6.5.0/en-US/31a202fb599a420b9615f96c8e4...

The MDOs concerned are:

1. CT - Complex Table MDO : SW65_GIS_PARAMETER_LIST

2. DO - Standard Data Object MDO: SWM65_GIS_OBJECT_GEOMETRY_GENERIC

From the two above, try checking if there is anything that may be related to CoordinateFormatter.

Now if we review the Note # 1982598 - GIS Integration Support for Mobile AddOn https://launchpad.support.sap.com/#/notes/1982598

The link stated:

Using the GIS integration framework, integration with external GIS vendor system is provided using Geospatial service provider ABAP OO class handlers and associated Geospatial Service Definition configuration objects. Consumption of supported geospatial services by mobile application is supported using the standard integration service endpoint of BAPI Wrappers and Mobile Data Objects.

  • Geoservice Provider Class Handler

The Geoservice provider class must be defined as a subclass of '/SMFND/CL_GIS_GEOSERV_BASE'. The service provide class is responsible for the technical integration with the third party GIS vendor system (Assumption here is that this is may related to what was shared above with respect to the ArcGIS SDK). Method 'GET_GSP_OPERATION_LIST' declares the list of Geospatial service supported by the provider class, and class handler methods assigned to each operation for runtime service execution. Parameters can be declared for each operation using method 'GET_GSP_OPER_PARAM_LIST'. Parameter values for each operation can be defined using ConfigPanel tool as customizing settings.

So if I have to assume, the team may need to work with GET_GSP_OPER_PARAM_LIST to see how the services supported by the provider class which may relate to CoordinateFormatter works.

I am speculating that the above may be needed to customized the app if the parameter is not available out of the box yet. Sometimes the documentation keeps on changing and it is hard to keep up on what gets published.

The next step is to see if you need to customized your GIS return to use some of the techniques presented above.

Others in the community may share their experience as well.

Regards,

Mark