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));