Options > Maps > Map Projections > Projecting Data: An Example > Printing Geographic Coordinates
Printing Geographic Coordinates
To print geographic coordinates in humanly readable form, we use the static function RadianToDMS of the class IlvMaps which converts an IlvCoordinate to a string containing degrees, minutes, and seconds.
char buffer1[12];
char buffer2[12];
IlvPrint("The inverse projection is \n"
" %s %s",
IlvMaps::RadianToDMS(buffer1, ll.x(), IlFalse),
IlvMaps::RadianToDMS(buffer2, ll.y(), IlTrue));
Published date: 05/24/2022
Last modified date: 02/24/2022