The projections are based upon PROJ (originally from the USGS). More information about PROJ is available at PROJ.4- Cartographic Projections Library
Viewproj programs work only with lat-lon data.
Each PROJ parameter is entered without a plus sign. Each PROJ flag must have "=y" appended to the flag and be entered without a plus sign. For example, the PROJ command line
proj +proj=utm +south +zone=2becomes
d.set.viewproj proj=utm south=y zone=2If the user does not use any arguments, the program will prompt the user to enter them. Consult the PROJ manual to determine the projections and the appropriate parameters for each projection.
d.set.viewproj proj=abcWarning: Some versions of PROJ use different elliptical parameters. For example, ellps=wgs84 versus ellps=WGS84.
PROJ doesn't accept these parameters!
The user must set the region (with g.region) appropriately for the view projection. If the region is not set correctly, the drawing programs (d.grid.viewproj, d.rast.viewproj, and d.vect.viewproj) will exit with an error message, as in the following example.
Mercator maps are restricted to the region between 85N and 85S. If n=90 and e=180, the following error message will occur when attempting to draw:
ERROR: latlon_to_cartPROJ cannot map 180.000000,90.000000 in cart_PROJ