[Proj] Question on colon DMS format

support.mn at elisanet.fi support.mn at elisanet.fi
Tue May 19 00:15:51 PDT 2009


"Gerald I. Evenden" [geraldi.evenden at gmail.com] kirjoitti: 
> Maybe someone here is familiar with what I call the colon format for DMS 
> display where degree-minute-seconds are in the from of DDD:MM:SS.SSS[NEWS]
> or perhaps sign prefixed.
> 
> The quesion is: can only one colon be present such as for DDD:MM.MMM such as 
> allowable in DMS as DDDdmm.mmm[']?
> 

The BNF for positions is as follows:

<string> :== {<spaces>} {<sign>} <field> {<sign>} {<spaces>} {<eol>}
<field>  :== <number> {t_SEP <number> {t_SEP <number>}}
           | <number> t_DEG {<number> t_MIN {<number> t_SEC}}
<number> :== <digits> {t_STOP} {<digits>}
<digits> :== <digit> {<digits>}
<spaces> :== <t_SPACE> {<spaces>}
<sign>   :==  t_POS | t_NEG

where the terminal symbols are:
  t_DIGIT :== "0".."9"
  t_SPACE :== " " | "\t"
  t_SEP   :== ":" | "/" | "\"
  t_STOP  :== "." | ","
  t_POS   :== "+" | "N" | "E"
  t_NEG   :== "-" | t_S | "W"
  t_D     :== "d" | "D"
  t_M     :== "m" | "M"
  t_S     :== "s" | "S"

-------------------------

Examples:

N60.5
60:30.55N
+60:30:55.34
21:33,45123E

It works both with european , or american .


Regards: Janne.




More information about the Proj mailing list