proj4.05

Jill Schuler jschuler at ncg.scs.ag.gov
Wed Jul 27 12:37:09 EDT 1994


%%%I'm trying to run make.mapdef under MAPGEN4.0 but somehow wgs84 ellipsoids is 
%%%not there. Where can get a new version of Proj4.05 ?
%%%Thanks for any help.
%%%
%%%Please reply to tran at sar_ws.fb4.noaa.gov
%%%

Use the following proj command to determine what ellipsoids are available:
proj -le

This should produce a list of all available ellipsoid names.  My hunch is the 
wgs84 ellipsoid is there, but just called by a different name then GRASS uses.
I fixed this in the SCS code by entering the GRASS names in the proj
source file pj_ellps.c.  This was the easiest and simplest method to make
the two system work.  However, this may not be the best method.
According to Jerry Evenden, you can construct and init file with the 
GRASS ellipsoid names:

%%%A better way might be to use an init file
%%%containing:
%%%
%%%# CERL ellipsoids
%%%<international>
%%%ellps=intl
%%%<>
%%%<clarke66>
%%%ellps=clrk66
%%%<>
%%%<UTM-international>
%%%ellps=intl
%%%proj=utm
%%%no_defs
%%%<>
%%%# and so forth.
%%%
%%%Thus an execution of *proj* might look like:
%%%
%%%proj +proj=utm +lon_0=-75 +init=CERL:international
%%%
%%%proj +init=CERL:UTM-international +zone=19
%%%
%%%Of course, many other projection parameters can also be included
%%%in this file.  The main thing is that you do not have to hack the
%%%source code.  It would have been far more clearer to a non GRASSer
%%%as to what was going on even without knowing what was in the CERL file.
%%%
%%%The main reason that I provide the +init feature is just for this
%%%kind of non-intrusive custimization.
%%%
%%%Gerald (Jerry) I. Evenden   Internet: gie at charon.er.usgs.gov
%%%voice: (508)563-6766          Postal: P.O. Box 1027
%%%  fax: (508)457-2310                  N.Falmouth, MA 02556-1027
%%%

If you use the init file method, the command make.mapdef will not work for you
and you will have to construct the parameter file map.def.par yourself.

execute the map.def.par file using the following:

mapdef map.def <map.def.par

Jill


*********************************************************************

#  # #### #### ####      ######  #### ##### Jill R. Schuler
#  # #    #  # #  #      #      #     #     USDA 
#  # #### #  # #### ### ####   #     ####   Soil Conservation Service
#  #    # #  # #  #        #  #         #   National Cartography and 
#  #    # #  # #  #       #  #         #    GIS Center
#### #### #### #  #   ####  ###### ####     P.O. Box 6567 
				            Ft. Worth, TX 76115
e-mail: jschuler at ncg.scs.ag.gov             Phone: (817) 334-5559 x3086

*********************************************************************





More information about the grass-user mailing list