Provided by: geographiclib-tools_2.1.1-1_amd64

**NAME**

ConicProj -- perform conic projections

**SYNOPSIS**

ConicProj(-c|-a)lat1lat2[-llon0] [-kk1] [-r] [-eaf] [-w] [-pprec] [--comment-delimitercommentdelim] [--version|-h|--help] [--input-fileinfile|--input-stringinstring] [--line-separatorlinesep] [--output-fileoutfile]

**DESCRIPTION**

Perform one of two conic projections geodesics. Convert geodetic coordinates to either Lambert conformal conic or Albers equal area coordinates. The standard latitudeslat1andlat2are specified by that the-coption (for Lambert conformal conic) or the-aoption (for Albers equal area). At least one of these options must be given (the last one given is used). Specifylat1=lat2, to obtain the case with a single standard parallel. The central meridian is given bylon0. The longitude of origin is given by the latitude of minimum (azimuthal) scale for Lambert conformal conic (Albers equal area). The (azimuthal) scale on the standard parallels isk1. Geodetic coordinates are provided on standard input as a set of lines containing (blank separated)latitudeandlongitude(decimal degrees or degrees, minutes, seconds); for details on the allowed formats for latitude and longitude, see the "GEOGRAPHIC COORDINATES" section ofGeoConvert(1). For each set of geodetic coordinates, the corresponding projected easting,x, and northing,y, (meters) are printed on standard output together with the meridian convergencegamma(degrees) and (azimuthal) scalek. For Albers equal area, the radial scale is 1/k. The meridian convergence is the bearing of theyaxis measured clockwise from true north. Special cases of the Lambert conformal projection are the Mercator projection (the standard latitudes equal and opposite) and the polar stereographic projection (both standard latitudes correspond to the same pole). Special cases of the Albers equal area projection are the cylindrical equal area projection (the standard latitudes equal and opposite), the Lambert azimuthal equal area projection (both standard latitude corresponds to the same pole), and the Lambert equal area conic projection (one standard parallel is at a pole).

**OPTIONS**

-clat1lat2use the Lambert conformal conic projection with standard parallelslat1andlat2.-alat1lat2use the Albers equal area projection with standard parallelslat1andlat2.-llon0specify the longitude of originlon0(degrees, default 0).-kk1specify the (azimuthal) scalek1on the standard parallels (default 1).-rperform the reverse projection.xandyare given on standard input and each line of standard output giveslatitude,longitude,gamma, andk.-eafspecify the ellipsoid via the equatorial radius,aand the flattening,f. Settingf= 0 results in a sphere. Specifyf< 0 for a prolate ellipsoid. A simple fraction, e.g., 1/297, is allowed forf. By default, the WGS84 ellipsoid is used,a= 6378137 m,f= 1/298.257223563.-wtoggle the longitude first flag (it starts off); if the flag is on, then on input and output, longitude precedes latitude (except that, on input, this can be overridden by a hemisphere designator,N,S,E,W).-pprecset the output precision toprec(default 6).precis the number of digits after the decimal point for lengths (in meters). For latitudes and longitudes (in degrees), the number of digits after the decimal point isprec+ 5. For the convergence (in degrees) and scale, the number of digits after the decimal point isprec+ 6.--comment-delimitercommentdelimset the comment delimiter tocommentdelim(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).--versionprint version and exit.-hprint usage and exit.--helpprint full documentation and exit.--input-fileinfileread input from the fileinfileinstead of from standard input; a file name of "-" stands for standard input.--input-stringinstringread input from the stringinstringinstead of from standard input. All occurrences of the line separator character (default is a semicolon) ininstringare converted to newlines before the reading begins.--line-separatorlinesepset the line separator character tolinesep. By default this is a semicolon.--output-fileoutfilewrite output to the fileoutfileinstead of to standard output; a file name of "-" stands for standard output.

**EXAMPLES**

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

**ERRORS**

An illegal line of input will print an error message to standard output beginning with "ERROR:" and causesConicProjto return an exit code of 1. However, an error does not causeConicProjto terminate; following lines will be converted.

**AUTHOR**

ConicProjwas written by Charles Karney.

**HISTORY**

ConicProjwas added to GeographicLib, <https://geographiclib.sourceforge.io>, in version 1.9.