Parent Topic: PROJ

LONG/LAT INPUT

Input of LONG/LAT coordinates to PACE programs depends on the type of parameter used:

Input of LONG/LAT coordinates to Works programs may be entered in a relatively free-format. All the following examples will be evaluated to produce the same value (-110.258333 degrees longitude) and returned in a standard format (110d15'30.00" W).

 110d 15' 30.0" W
 110d15'30.0W
 110 15.5' W
 110.258333 W
-110.258333
 110 15 30 w
-110 15 30
w 30" 15' 110 d
w 15' 30  110 d
From the above examples, it can be seen that:

 1. Alpha characters may be upper or lower-case.
 2. Fields may be separated by one (or more) spaces.
 3. The spacing may vary as long as fields of the same type do
    not abut.  For example "w15'30 110d" is valid as the following
    fields can be parsed:
      a. the hemisphere (an alpha string)
      b. a value of 15 (a numeric string)
      c. the Minutes identifier (') (a character field). This
         identifies the preceding value as 15 Minutes.
      d. a value of 30 (a numeric string).  As no field identifier
         follows, this is assumed to be seconds, as the preceding
         field was a Minutes value.
      e. a space as a field separator
      f. a value of 110 (a numeric string)
      g. the Degrees identifier (d) (an alpha string).  This
         identifies the preceding value as 110 degrees.

Parent Topic: PROJ
About PCI Help Gateway