Skip to main content
Solved

Convert decimal coordinate tom DMS format with hemisphere ( E / N)

  • March 10, 2026
  • 2 replies
  • 23 views

fakimochere
Contributor
Forum|alt.badge.img+3

Hello, 

I’m trying to convert decimal coordinates into a DMS format with hemisphere indication.

 

Example : 1.4861803 ; 43.5713123

 

Target format : 1°29’10.2491” E ; 43°34’16.7243” N

In my workflow, i used DMSCalculator transformer to split the coordinates into degrees, minutes and seconds. This part works correctly.

However, I am now stuck when trying to reconstruct the final formatted string. 

Does anyone know the best approach to rebuild this format ?

Thanks advanced,

Best answer by nielsgerrits

One way to do this is to use an AttributeCreator with lon = @Value(x_degrees)°@Value(x_minutes)’@Value(x_seconds)” E.

2 replies

nielsgerrits
VIP
Forum|alt.badge.img+65
  • Best Answer
  • March 10, 2026

One way to do this is to use an AttributeCreator with lon = @Value(x_degrees)°@Value(x_minutes)’@Value(x_seconds)” E.


fakimochere
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • March 11, 2026

Hello, thank you for your response. That is the solution I am currently using.
Is there a transformer that calculates this format directly?