summaryrefslogtreecommitdiff
path: root/static/unix-v10/man1/route.1
blob: abb1dc3eaa073572f0c2c8c917595361cc7dc7b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
.TH ROUTE 1
.SH NAME
route \- map orientations and great circle paths
.SH SYNOPSIS
.B route
[ 
.B -t
]
.SH DESCRIPTION
.I Route
without an option
reads from the standard input a sequence of points, expressed 
as latitude-longitude pairs.
For each pair of points, say A and B,
.I route
prints on the standard output
.IP \-
A
.IR map (7)
orientation, expressed as a
.B -o
option, that transforms the great circle from A to B into the equator.
The transformed locations of A and B are located on the equator
at equal distances west and east of the Prime Meridian.
.IP \-
The transformed coordinates of the two points.
.IP \-
The same information for a map orientation in which point A
appears to the east and B to the west of the Prime Meridian.
.PP
Under option
.B -t
.I route
produces coordinates along the great circle from A to B
in the form of a track for use with 
.I map
option
.BR -t .
.PP
Coordinates are expressed in degrees, with latitude
positive north of the equator and longitude positive
west of Greenwich.
.SH EXAMPLES
.HP
.B "echo 40.75 74 52 0 | route -t | map mercator -l 30 70 -10 80 -t - | plot
.br
Produce a map of the North Atlantic with a great circle plotted
from New York to London.
.TP
.B route
.br
.ns
.TP
.B 40.75 74 52 0
Produces the output
.RS
.IP
.nf
.ft L
-o 35.8283 -157.5308 -168.6148
A -0.0000 24.9943
B -0.0000 -24.9943
-o -35.8283 22.4692 168.6149
A -0.0000 -24.9943
B 0.0000 24.9943
.ft
.fi
.RE
.IP
From this we derive the following command to draw a strip map 
20 degrees wide along the great circle from New York to London.
The
.B -w
option windows the map in the new coordinate system, where
the equator runs along the great circle and the two cities
sit at 25W and 25E on that `equator'.
The
.B -l
option avoids surveying the whole rest of the world for
plottable points.
.IP
.B
map mercator -o 35.83 -157.53 -168.61 -w -10 10 -30 30 -l 30 75 -10 80
.SH SEE ALSO
.IR map (7)