We did the reverse conversion, thanks to Brian it was already in the code. With a bit of fine tuning and Brian sending me back to “the school of the obvious”, precision was spot on. It is now part of the main code in the kml writer. Here is the link to the original question:
Also search for background and section to kml in the forum.