Content-type: text/html
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.
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)
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
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.
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.
deg2deg geo2pol dshift gmt proj