RHUMBSOLVE(1) | GeographicLib Utilities | RHUMBSOLVE(1) |

- 1.
- By default,
**RhumbSolve**accepts lines on the standard input containing*lat1**lon1**azi12**s12*and prints*lat2**lon2**S12*on standard output. This is the direct calculation.

- 2.
- With the
**-i**command line argument,**RhumbSolve**performs the inverse calculation. It reads lines containing*lat1**lon1**lat2**lon2*and prints the values of*azi12**s12**S12*for the corresponding shortest rhumb lines. If the end points are on opposite meridians, there are two shortest rhumb lines and the east-going one is chosen.

- 3.
- Command line arguments
**-L***lat1**lon1**azi12*specify a rhumb line.**RhumbSolve**then accepts a sequence of*s12*values (one per line) on standard input and prints*lat2**lon2**S12*for each. This generates a sequence of points on a rhumb line.

**-i**- perform an inverse calculation (see 2 above).

**-L***lat1**lon1**azi12*- line mode (see 3 above); generate a sequence of points
along the rhumb line specified by
*lat1**lon1**azi12*. The**-w**flag can be used to swap the default order of the 2 geographic coordinates, provided that it appears before**-L**. (**-l**is an alternative, deprecated, spelling of this flag.)

**-e***a**f*- specify the ellipsoid via the equatorial radius,
*a*and the flattening,*f*. Setting*f*= 0 results in a sphere. Specify*f*< 0 for a prolate ellipsoid. A simple fraction, e.g., 1/297, is allowed for*f*. By default, the WGS84 ellipsoid is used,*a*= 6378137 m,*f*= 1/298.257223563.

**-d**- output angles as degrees, minutes, seconds instead of decimal degrees.

**-:**- like
**-d**, except use : as a separator instead of the d, ', and " delimiters.

**-w**- on input and output, longitude precedes latitude (except
that on input this can be overridden by a hemisphere designator,
*N*,*S*,*E*,*W*).

**-p***prec*- set the output precision to
*prec*(default 3);*prec*is the precision relative to 1 m. See "PRECISION".

**-s**- By default, the rhumb line calculations are carried out
exactly in terms of elliptic integrals. This includes the use of the
addition theorem for elliptic integrals to compute the divided difference
of the isometric and rectifying latitudes. If
**-s**is supplied this divided difference is computed using Krueger series for the transverse Mercator projection which is only accurate for |*f*| < 0.01. See "ACCURACY".

**--comment-delimiter***commentdelim*- set the comment delimiter to
*commentdelim*(e.g., "#" or "//"). If set, the input lines will be scanned for this delimiter and, if found, the delimiter and the rest of the line will be removed prior to processing and subsequently appended to the output line (separated by a space).

**--version**- print version and exit.

**-h**- print usage and exit.

**--help**- print full documentation and exit.

**--input-file***infile*- read input from the file
*infile*instead of from standard input; a file name of "-" stands for standard input.

**--input-string***instring*- read input from the string
*instring*instead of from standard input. All occurrences of the line separator character (default is a semicolon) in*instring*are converted to newlines before the reading begins.

**--line-separator***linesep*- set the line separator character to
*linesep*. By default this is a semicolon.

**--output-file***outfile*- write output to the file
*outfile*instead of to standard output; a file name of "-" stands for standard output.

echo 40:38:23N 073:46:44W 01:21:33N 103:59:22E | RhumbSolve -i -: -p 0 103:34:58.2 18523563N.B. This is

for ((i = 0; i <= 20; i += 2)); do echo ${i}000000;done | RhumbSolve -L 40:38:23N 073:46:44W 103:34:58.2 -: -p 0 40:38:23.0N 073:46:44.0W 0 36:24:30.3N 051:28:26.4W 9817078307821 32:10:26.8N 030:20:57.3W 18224745682005 27:56:13.2N 010:10:54.2W 25358020327741 23:41:50.1N 009:12:45.5E 31321269267102 19:27:18.7N 027:59:22.1E 36195163180159 15:12:40.2N 046:17:01.1E 40041499143669 10:57:55.9N 064:12:52.8E 42906570007050 06:43:07.3N 081:53:28.8E 44823504180200 02:28:16.2N 099:24:54.5E 45813843358737 01:46:36.0S 116:52:59.7E 45888525219677

2017-10-05 | GeographicLib 1.49 |