Running the Example Application

The example is commented, part by part, then printed as a whole in the section The Complete Example .

The code of this application is supplied in the file <installdir>/samples/maps/userman/src/useproj.cpp which you can compile to run the application.

To compile the example:

  1. Go to the directory <installdir>/samples/maps/userman/<platform>.

  2. Set the ILVHOME variable to the Views installation directory.

  3. Compile using make (on UNIX® systems) or nmake (on Microsoft® Windows® systems). This will compile all the samples for this User’s Manual.

  4. Launch the useproj application.

The program output is the following:

The projection of 45W 30N is
x = -5003769 m
y = 3499627 m
The inverse projection is
45DW 30DN

The following sections explain the code in useproj.cpp.