Content-type: text/html Manpage of GEO2PRJ

GEO2PRJ

Section: User Commands (1)
Updated: Local
Index Return to Main Contents
 

NAME

geo2prj - Geographical to projection coordinates, direct and inverse transformation.  

ORIGIN

IGM - CNR Via Gobetti 101, Bologna (ITALY) Some ideas for programming were taken from GMT (Wessel and Smith, 1992) and from PROJ (G.Evendon (1991,1993).  

SYNOPSIS

geo2prj [ ][ I/O format] [ ellipsoid ] [ Long. offset Roma M.Mario ] [ Gauss-Boaga ] [ ] [ ]
         

AVAILABILITY

This is geo2prj, part of IGM-CNR Cartographic Software. The source code of this program together with information on how to install it is available from IGM-CNR.  

DESCRIPTION

Program geo2prj expects on input pairs of geographical coordinates (longitude and latitude, -180 to +180, -90 to + 90); on output easting, northing (and zone if UTM);

or (inverse mode) (-I)

expects on input pairs of easting, northing (and UTM zone (negative South)); on output longitude (negative west), latitude (negative South).

If option -G is selected, the program does the same, except that it considers the non-standard false eastings (1500000 mt and 2520000 mt for UTM zones 32 and 33) in the Italian implementation of the UTM (Gauss-Kruger) projection (also named Gauss-Boaga). UTM zone is computed automatically, that is, no need to input it!
If option -M is selected, the program does the same, except that it considers the longitude offsets from Rome M.Mario (Italian State Network) (-G option is selected automatically).
The input data record is by default preserved on output. To turn off, select -P option.  

ARGUMENTS

None. It reads and writes from standard input and to stardard output.  

OPTIONS

Options may appear anywhere on the command line. No space between single option and codes. All options must be upper case.

-J
Selects the map projection. The switches are the same implemented in GMT (Wessel & Smith,1992), with some exceptions (among them the Direct Mercator and Lambert Conformal). Standard meridians and parallels must be given in the form ddmmss.xx.

CYLINDRICAL PROJECTIONS:

-Jclon0/lat0 (Cassini-Soldner)
-Jmlat0 (Direct Mercator)
-Jtlon0 (TM - Transverse Mercator)
-Juzone (UTM - Universal Transverse Mercator)

CONIC PROJECTIONS:

-Jlllon0/lat0 (Lambert - French Method)

-JlLlon0/lat0/lat1/lat2 (Lambert - Anglosaxon Method).


-Js[S]lon0/lat0 (General [s] or Polar [S] Stereographic)

-I
Inverse mode (from projection to geographical)
-C[s][m][d]
Selects the coordinate formats, where


s real number encoding degree_minute_seconds.decimals
m real number encoding degree_minute.decimals
d real number whole degree.decimals

-E[i][W][w][b][c][C]

Selects the ellipsoid
i      International (Hayford 1924) (default)

W      WGS84

w      WGS72

b      Bessel

C      Clarke 1880

c      Clarke 1886
-R
Longitude offset Roma M.Mario (Italian State Network) (122708.400).
-G
Gauss-Boaga False Eastings (Italian State Network).
1500000 (zone 32), 2520000 (zone 33)
-P
Turns off the printing of input record
-:
Swaps the input coordinates (i.e. latitude,longitude instead of longitude,latitude).
 

DEFAULTS

Ellipsoid International
Degree format [d]
Longitude offset Greenwich.  

EXAMPLES

geo2prj -Ju30 -Cm -EW <<EOF

  531.0 -5131.0
 -231.1 -5233.25
 EOF

will transform on fuse 30 of UTM projection, obtaining


 1090458.45 4258359.14 -30  
 532657.01 4177320.95 -30 

note the negative UTM zone (south).

The inverse,

geo2prj -Ju -Cm/m -EW -I <<EOF
 1090458.45 4258359.14 -30 
 532657.01 4177320.95 -30 
 EOF

obtains


  531.0000 -5131.0000 -30 
 -231.1000 -5233.2500 -30 

Note that in the inverse mode of UTM it is not necessary to give the zone on the option Ju, since it MUST be given in input data. This for the sake of minimizing the errors when dealing with file-keyboard mixed inputs, expecially on pipes.

geo2prj -Jm-543000 -: << EOF


 -55.25 -2.50
 -54.10 -2.00  EOF

will transform to the Direct Mercator (standard parallel -543000), obtaining


 -161976.51 -4292574.10 
 -129581.21 -4163993.24 

And the inverse,

geo2prj -Jm-543000 -I <<EOF
 -161976.51 -4292574.10 
 -129581.21 -4163993.24
 EOF

obtains


 -2.4999999 -55.2500000 


 -2.0000000 -54.1000000 

 

DIAGNOSTICS

If the coordinate are output as 0's it probably means that UTM zone was not correctly set. The message segmentation fault probably means that UTM zone was not input.

 

BUGS

Some input options are still incongruous. On output from inverse there is some lack of precision.

 

AUTHORS

G. Bortoluzzi M.Ligi (IGM CNR).
phone (39)-51-639-8882
e-mail : gb@boigm2.igm.bo.cnr.it, gb@astbo1.bo.cnr.it  

REFERENCES


Ligi M. and Bortoluzzi G. (1989) - Datum, a Fortran77 computer program for datum shift and conversion of geographical coordinates between different cartographic systems. Computer & Geosciences, 15(4), 449-518.
"Cartographic Projection Procedures for the UNIX Environment---A User's Manual," (Evenden, 1990, Open-file report 90-284).
"Map Projections Used by the U. S. Geological Survey" (Snyder, 1984,USGS Bulletin 1532).
"Map Projections---A Working Manual" (Synder, 1988, USGS Prof. Paper 1395). "An Album of Map Projections" (Snyder & Voxland, 1989, USGS Prof. Paper 1453).
Wessel, P., and W. H. F. Smith, 1991, Free Software Helps Map and Display Data, EOS Trans. AGU, 72, p. 441.
Wessel, P., and W. H. F. Smith, 1995, New Version of the Generic Mapping Tools Released, EOS Trans. AGU, 76, p. 329.
 

SEE ALSO

deg2deg geo2pol dshift gmt proj


 

Index

NAME
ORIGIN
SYNOPSIS
AVAILABILITY
DESCRIPTION
ARGUMENTS
OPTIONS
DEFAULTS
EXAMPLES
DIAGNOSTICS
BUGS
AUTHORS
REFERENCES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 15:06:03 GMT, December 16, 2007