Map Projections > Projecting Data: An Example
 
Projecting Data: An Example
This section provides a simple example application illustrating the basic operations that you must perform when using a projection. It shows how to create a projection and compute the image of a geographic point on a flat surface.
This example is composed of the following steps:
*Running the Example Application
*Including the Projection Declaration
*The Main Function
*Initializing a Projection
*Creating the Projected Data
*Projecting the Data
*Printing the Result of the Projection
*Calculating the Inverse Projection
*Printing Geographic Coordinates
*The Complete Example
Complete Code Example
The complete code of the example on which this section is based can be found in the following file:
<installdir>/samples/maps/userman/src/useproj.cpp

Version 5.7
Copyright © 2013, Rogue Wave Software, Inc. All Rights Reserved.