DEFINE_PROJ
The DEFINE_PROJ command allows a projection (including datum) to be associated with a name. The projection name can then be used in later IMPORT, IMPORT_ARCHIVE, IMPORT_ASCII, and LOAD_PROJECTION commands to specify a projection as needed.
The DEFINE_PROJ command consists of a single command line followed by a series of lines describing the projection in the format of an ESRI PRJ file. The easiest way to determine the text for a projection is to setup a projection on the Projection tab of the Tools->Configuration and then use the Save to File button to create a new .prj file. Then just open the .prj file up in Notepad and copy the contents to the lines following the DEFINE_PROJ command line.
The DEFINE_PROJ command is terminated with a single line containing only the text END_DEFINE_PROJ.
For a sample of the DEFINE_PROJ command in use, load some data and then save a Global Mapper workspace file from the File->Save Workspace menu command. Open the resulting .gmw file in an editor and you can see how the DEFINE_PROJ command is used to define a view projection and the set it.
The following parameters are required by the DEFINE_PROJ command.
- PROJ_NAME - specifies the name to associate with the projection
SAMPLES
DEFINE_PROJ PROJ_NAME="UTM_ZONE30_WGS84" Projection UTM Datum WGS84 Zunits NO Units METERS Zone 30 Xshift 0.000000 Yshift 0.000000 Parameters END_DEFINE_PROJ
DEFINE_PROJ PROJ_NAME="SPCS_ZONE502_NAD83" Projection STATE_PLANE Datum NAD83 Zunits NO Units INTERNATIONAL FEET Zone 502 Xshift 0.000000 Yshift 0.000000 Parameters END_DEFINE_PROJ
DEFINE_PROJ PROJ_NAME="EQUIDC_WGS84"
Projection EQUIDISTANT_CONIC
Datum WGS84
Zunits NO
Units METERS
Xshift 0.000000
Yshift 0.000000
Parameters
40 0 0.00000 /* latitude of the standard parallel
-80 0 0.00000 /* central meridian
0 0 0.00000 /* latitude of the origin
0.0000 /* false easting (meters)
0.0000 /* false northing (meters)
END_DEFINE_PROJ