Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Converting position to valid latitude/longitute

$
0
0

Dear HANA-dev-community,

 

one of my tables defines a VARCHAR column containing geo positions, e.g. N4711.4595E00709.0610. I found web page www.earthpoint.us/Convert.aspx which provides a conversion function for this kind of position. According to the conversion result, I assume my source position data is defined in the "degree minutes" representation.

Currently, I try to visualize the data stored along with this position in a UI5 application utilizing a map interface where I intend to place a marker at each provided position. The additional data should be displayed by a popup bound to those markers.

 

Now my problem is, that I'm not able to find a HANA-built-in conversion function to get the valid latitude/longitude values from the degree minutes varchar - similar to the conversion the mentioned web page provides. From my Point of view, doing this conversion manually along with a database selection is quite cumbersome, since there are various substring/locate/etc.-statements involved combined with various calculations (e.g. division by 60).

 

Therefore my question is, does a built-in HANA (spatial) function exist, which is capable of doing the desired conversion? Or maybe there's something like a simple workaround which I haven't thought of so far?

 

Many thanks in advance and beste regards,

Christian


Viewing all articles
Browse latest Browse all 6412

Trending Articles