1CONICPROJ(1)                GeographicLib Utilities               CONICPROJ(1)
2
3
4

NAME

6       ConicProj -- perform conic projections
7

SYNOPSIS

9       ConicProj ( -c | -a ) lat1 lat2 [ -l lon0 ] [ -k k1 ] [ -r ] [ -e a f ]
10       [ -w ] [ -p prec ] [ --comment-delimiter commentdelim ] [ --version |
11       -h | --help ] [ --input-file infile | --input-string instring ] [
12       --line-separator linesep ] [ --output-file outfile ]
13

DESCRIPTION

15       Perform one of two conic projections geodesics.  Convert geodetic
16       coordinates to either Lambert conformal conic or Albers equal area
17       coordinates.  The standard latitudes lat1 and lat2 are specified by
18       that the -c option (for Lambert conformal conic) or the -a option (for
19       Albers equal area).  At least one of these options must be given (the
20       last one given is used).  Specify lat1 = lat2, to obtain the case with
21       a single standard parallel.  The central meridian is given by lon0.
22       The longitude of origin is given by the latitude of minimum (azimuthal)
23       scale for Lambert conformal conic (Albers equal area).  The (azimuthal)
24       scale on the standard parallels is k1.
25
26       Geodetic coordinates are provided on standard input as a set of lines
27       containing (blank separated) latitude and longitude (decimal degrees or
28       degrees, minutes, seconds);  for details on the allowed formats for
29       latitude and longitude, see the "GEOGRAPHIC COORDINATES" section of
30       GeoConvert(1).  For each set of geodetic coordinates, the corresponding
31       projected easting, x, and northing, y, (meters) are printed on standard
32       output together with the meridian convergence gamma (degrees) and
33       (azimuthal) scale k.  For Albers equal area, the radial scale is 1/k.
34       The meridian convergence is the bearing of the y axis measured
35       clockwise from true north.
36
37       Special cases of the Lambert conformal projection are the Mercator
38       projection (the standard latitudes equal and opposite) and the polar
39       stereographic projection (both standard latitudes correspond to the
40       same pole).  Special cases of the Albers equal area projection are the
41       cylindrical equal area projection (the standard latitudes equal and
42       opposite), the Lambert azimuthal equal area projection (both standard
43       latitude corresponds to the same pole), and the Lambert equal area
44       conic projection (one standard parallel is at a pole).
45

OPTIONS

47       -c lat1 lat2
48           use the Lambert conformal conic projection with standard parallels
49           lat1 and lat2.
50
51       -a lat1 lat2
52           use the Albers equal area projection with standard parallels lat1
53           and lat2.
54
55       -l lon0
56           specify the longitude of origin lon0 (degrees, default 0).
57
58       -k k1
59           specify the (azimuthal) scale k1 on the standard parallels (default
60           1).
61
62       -r  perform the reverse projection.  x and y are given on standard
63           input and each line of standard output gives latitude, longitude,
64           gamma, and k.
65
66       -e a f
67           specify the ellipsoid via the equatorial radius, a and the
68           flattening, f.  Setting f = 0 results in a sphere.  Specify f < 0
69           for a prolate ellipsoid.  A simple fraction, e.g., 1/297, is
70           allowed for f.  By default, the WGS84 ellipsoid is used, a =
71           6378137 m, f = 1/298.257223563.
72
73       -w  toggle the longitude first flag (it starts off); if the flag is on,
74           then on input and output, longitude precedes latitude (except that,
75           on input, this can be overridden by a hemisphere designator, N, S,
76           E, W).
77
78       -p prec
79           set the output precision to prec (default 6).  prec is the number
80           of digits after the decimal point for lengths (in meters).  For
81           latitudes and longitudes (in degrees), the number of digits after
82           the decimal point is prec + 5.  For the convergence (in degrees)
83           and scale, the number of digits after the decimal point is prec +
84           6.
85
86       --comment-delimiter commentdelim
87           set the comment delimiter to commentdelim (e.g., "#" or "//").  If
88           set, the input lines will be scanned for this delimiter and, if
89           found, the delimiter and the rest of the line will be removed prior
90           to processing and subsequently appended to the output line
91           (separated by a space).
92
93       --version
94           print version and exit.
95
96       -h  print usage and exit.
97
98       --help
99           print full documentation and exit.
100
101       --input-file infile
102           read input from the file infile instead of from standard input; a
103           file name of "-" stands for standard input.
104
105       --input-string instring
106           read input from the string instring instead of from standard input.
107           All occurrences of the line separator character (default is a
108           semicolon) in instring are converted to newlines before the reading
109           begins.
110
111       --line-separator linesep
112           set the line separator character to linesep.  By default this is a
113           semicolon.
114
115       --output-file outfile
116           write output to the file outfile instead of to standard output; a
117           file name of "-" stands for standard output.
118

EXAMPLES

120          echo 39.95N 75.17W | ConicProj -c 40d58 39d56 -l 77d45W
121          => 220445 -52372 1.67 1.0
122          echo 220445 -52372 | ConicProj -c 40d58 39d56 -l 77d45W -r
123          => 39.95 -75.17 1.67 1.0
124

ERRORS

126       An illegal line of input will print an error message to standard output
127       beginning with "ERROR:" and causes ConicProj to return an exit code of
128       1.  However, an error does not cause ConicProj to terminate; following
129       lines will be converted.
130

AUTHOR

132       ConicProj was written by Charles Karney.
133

HISTORY

135       ConicProj was added to GeographicLib,
136       <https://geographiclib.sourceforge.io>, in version 1.9.
137
138
139
140GeographicLib 1.49                2017-10-05                      CONICPROJ(1)
Impressum