Printing the Result of the Projection
The result of the projection is stored in the xy variable. In the following example, the result is expressed in meters, which is the default measurement unit. The coordinates represent the distance from the center of the projection. This distance is very different from the real distance between the center of the projection (0E 0N) and the point 45W 30N since the center of the projection is far away and the Mercator Projection does not maintain distances from its center. The Azimuthal Equidistant Projection, on the other hand, does.
IlvPrint("The projection of 45W 30N is \n"
" x = %d m\n"
" y = %d m",
(int) xy.x(),
(int) xy.y());
Published date: 05/24/2022
Last modified date: 02/24/2022