~ubuntu-branches/ubuntu/vivid/proj/vivid

« back to all changes in this revision

Viewing changes to man/man1/proj.1

  • Committer: Bazaar Package Importer
  • Author(s): Peter S Galbraith
  • Date: 2002-01-11 10:27:12 UTC
  • Revision ID: james.westby@ubuntu.com-20020111102712-ayi18r8y2eesv0y9
Tags: upstream-4.4.5
ImportĀ upstreamĀ versionĀ 4.4.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.\" release 4
 
2
.nr LL 5.5i
 
3
.ad b
 
4
.hy 1
 
5
.TH PROJ 1 "2000/03/21 Rel. 4.4" 
 
6
.SH NAME
 
7
proj \- forward cartographic projection filter
 
8
.br
 
9
invproj \- inverse cartographic projection filter
 
10
.SH SYNOPSIS
 
11
.B proj
 
12
[
 
13
.B \-bceEfiIlmorsStTvVwW
 
14
[
 
15
.I args
 
16
] ] [
 
17
.B +args
 
18
]
 
19
file[s]
 
20
.br
 
21
.B invproj
 
22
[
 
23
.B \-bceEfiIlmorsStTwW
 
24
[
 
25
.I args
 
26
] ] [
 
27
.B +args
 
28
]
 
29
file[s]
 
30
.SH DESCRIPTION
 
31
.I Proj
 
32
and
 
33
.I invproj
 
34
perform respective forward and inverse transformation of cartographic data
 
35
to or from cartesian data with a wide range of selectable projection functions.
 
36
.PP
 
37
The following control parameters can appear in any order:
 
38
.TP
 
39
.BI \-b
 
40
Special option for binary coordinate data input and output
 
41
through standard input and standard output.
 
42
Data is assumed to be in system type
 
43
.I double
 
44
floating point words.
 
45
This option is to be used when
 
46
.B proj
 
47
is a
 
48
.I son
 
49
process and allows bypassing formatting operations.
 
50
.TP
 
51
.BI \-i
 
52
Selects binary input only (see
 
53
.B \-b option).
 
54
.TP
 
55
.BI \-I
 
56
alternate method to specify inverse projection.
 
57
Redundant when used with
 
58
.B invproj.
 
59
.TP
 
60
.BI \-o
 
61
Selects binary output only (see
 
62
.B \-b option).
 
63
.TP
 
64
.BI \-t "a"
 
65
.I A
 
66
specifies a character employed as the first character to denote
 
67
a control line to be passed through without processing.
 
68
This option applicable to ascii input only.
 
69
(# is the default value).
 
70
.TP
 
71
.BI \-e " string"
 
72
.I String
 
73
is an arbitrary string to be output if an error is detected during
 
74
data transformations.
 
75
The default value is: *\et*.
 
76
Note that if the
 
77
.B \-b,
 
78
.B \-i
 
79
or
 
80
.B \-o
 
81
options are employed, an error is returned as HUGE_VAL
 
82
value for both return values.
 
83
.TP
 
84
.BI \-E
 
85
causes the input coordinates to be copied to the output line
 
86
prior to printing the converted values.
 
87
.TP
 
88
.BI \-l "[p|P|=|e|u|d]" id
 
89
List projection identifiers with
 
90
.B \-l,
 
91
.B \-lp
 
92
or
 
93
.B \-lP (expanded)
 
94
that can be selected with
 
95
.B +proj.
 
96
.BI \-l= id
 
97
gives expanded description of projection
 
98
.I id.
 
99
List ellipsoid identifiers with
 
100
.B \-le,
 
101
that can be selected with
 
102
.B +ellps,
 
103
.B \-lu
 
104
list of cartesian to meter conversion factors
 
105
that can be selected with
 
106
.B +units
 
107
or
 
108
.B \-ld
 
109
list of datums that can be selected with 
 
110
.B +datum.
 
111
.TP
 
112
.BI \-r
 
113
This options reverses the order of the
 
114
expected input from longitude-latitude or x-y to latitude-longitude or y-x.
 
115
.TP
 
116
.BI \-s
 
117
This options reverses the order of the
 
118
output from x-y or longitude-latitude to y-x or latitude-longitude.
 
119
.TP
 
120
.BI \-S
 
121
Causes estimation of
 
122
.I meridinal
 
123
and
 
124
.I parallel
 
125
scale factors,
 
126
.I area
 
127
scale factor and
 
128
.I angular distortion,
 
129
and
 
130
.I maximum
 
131
and
 
132
.I minimum
 
133
scale factors to be listed between <> for each input point.
 
134
For conformal projections meridinal and parallel scales factors
 
135
will be equal and angular distortion zero.
 
136
Equal area projections will have an area factor of 1.
 
137
.TP
 
138
.BI \-f " format"
 
139
.I Format
 
140
is a
 
141
.I printf
 
142
format string to control the form of the output values.
 
143
For inverse projections, the output will be in degrees when this option
 
144
is employed.
 
145
If a format is specified for inverse projection the
 
146
output data will be in decimal degrees.
 
147
The default format is "%.2f" for forward projection and DMS
 
148
for inverse.
 
149
.TP
 
150
.BI \-[w|W] n
 
151
.I N
 
152
is the number of significant fractional digits to employ for
 
153
seconds output (when the option is not specified,
 
154
.B \-w3
 
155
is assumed).
 
156
When
 
157
.B \-W
 
158
is employed the fields will be constant width and with leading zeroes.
 
159
.TP
 
160
.B \-v
 
161
causes a listing of cartographic control parameters tested for and
 
162
used by the program to be printed prior to input data.
 
163
Should not be used with the
 
164
.B \-T
 
165
option.
 
166
.TP
 
167
.B \-V
 
168
This option causes an expanded annotated listing of the characteristics
 
169
of the projected point.
 
170
.B -v is implied with this option.
 
171
.TP
 
172
.BI \-T " ulow,uhi,vlow,vhi,res[,umax,vmax]"
 
173
This option creates a set of bivariate Chebyshev polynomial
 
174
coefficients that approximate the selected cartographic projection on
 
175
.I stdout.
 
176
The values
 
177
.I low
 
178
and
 
179
.I hi
 
180
denote the range of the input where the
 
181
.I u
 
182
or
 
183
.I v
 
184
prefixes apply to respective longitude-x or latitude-y
 
185
depending upon whether a forward or inverse projection is selected.
 
186
.I Res
 
187
is an integer number specifying the power of 10 precision of the
 
188
approximation.
 
189
For example, a
 
190
.I res
 
191
of -3 specifies an approximation with an accuracy better than .001.
 
192
.I Umax,
 
193
and
 
194
.I vmax
 
195
specify maximum degree of the polynomials (default: 15).
 
196
See also:
 
197
.B fproj(1).
 
198
.PP
 
199
The
 
200
.B +args
 
201
run-line arguments are associated with cartographic parameters
 
202
and usage varies with projection and for a complete description see
 
203
.I "Cartographic Projection Procedures for the UNIX Environment\(emA User's Manual" )
 
204
and supplementary documentation for Release 4.
 
205
.PP
 
206
Additional projection control parameters may be contained in two
 
207
auxilliary control files:
 
208
the first is optionally referenced with the
 
209
.BI +init= file:id
 
210
and the second is always processed after the name
 
211
of the projection has been established from either the run-line
 
212
or the contents of
 
213
.B +init
 
214
file.
 
215
The environment parameter
 
216
.B PROJ_LIB
 
217
establishes the default directory for a file reference without
 
218
an absolute path.  This is also used for supporting files like
 
219
datum shift files.
 
220
.PP
 
221
One or more
 
222
.I files
 
223
(processed in left to right order)
 
224
specify the source of data to be transformed.
 
225
A \- will specify the location of processing standard input.
 
226
If no files are specified, the input is assumed to be from
 
227
.I stdin.
 
228
For ASCII input data the two data values must be in the
 
229
first two white space separated fields and
 
230
when both input and output are ASCII all trailing portions
 
231
of the input line are appended to the output line.
 
232
.PP
 
233
Input geographic data
 
234
(longitude and latitude) must be in DMS format and input
 
235
cartesian data must be in units consistent with the ellipsoid
 
236
major axis or sphere radius units.
 
237
Output geographic coordinates will be in DMS
 
238
(if the
 
239
.B \-w
 
240
switch is not employed) and precise to 0.001"
 
241
with trailing, zero-valued minute-second fields deleted.
 
242
.SH EXAMPLE
 
243
The following script
 
244
.RS 5
 
245
 \f(CWproj +proj=utm +lon_0=112w +ellps=clrk66 -r <<EOF
 
246
 45d15'33.1"    111.5W
 
247
 45d15.551666667N       -111d30
 
248
 +45.25919444444        111d30'000w
 
249
 EOF\fR
 
250
.RE
 
251
will perform UTM forward projection with a standard UTM
 
252
central meridian nearest longitude 112\(deW.
 
253
The geographic values of this example are equivalent and meant
 
254
as examples of various forms of DMS input.
 
255
The x\-y output data will appear as three lines of:
 
256
.RS 5
 
257
 \f(CW460769.27 5011648.45
 
258
.RE
 
259
.SH OTHER PROGRAMS
 
260
.PP
 
261
The \fIproj\fR program is limited to converting between geographic and
 
262
projection coordinates within one datum.
 
263
.PP
 
264
The \fIcs2cs\fR program operates
 
265
similarly, but allows translation between any pair of definable coordinate
 
266
systems, including support for datum translation.
 
267
.PP
 
268
The \fInad2nad\fR program provides for translation between NAD27 and NAD83
 
269
(also available in \fRcs2cs\fI) in a convenient manner. 
 
270
.PP 
 
271
The \fIgeod\fR program provides the ability to compute geodetic (Great
 
272
Circle) computations.
 
273
.SH SEE ALSO
 
274
.B cs2cs(1U), nad2nad(1U), geod(1U),
 
275
.br
 
276
.I "Cartographic Projection Procedures for the UNIX Environment\(emA User's Manual,"
 
277
(Evenden, 1990, Open-file report 90\-284).
 
278
.br
 
279
.I "Map Projections Used by the U. S. Geological Survey"
 
280
(Snyder, 1984,
 
281
USGS Bulletin 1532).
 
282
.br
 
283
.I "Map Projections\(emA Working Manual"
 
284
(Synder, 1988, USGS Prof. Paper 1395).
 
285
.br
 
286
.I "An Album of Map Projections"
 
287
(Snyder & Voxland, 1989, USGS Prof. Paper 1453).
 
288
.SH HOME PAGE
 
289
http://www.remotesensing.org/proj