From a6dac30fbf30c6e7ae2a0a97895dc9deea825d05 Mon Sep 17 00:00:00 2001 From: Al Brown Date: Wed, 15 Aug 2012 08:52:16 -0700 Subject: [PATCH] Fix range-ring KML for new Google Earth breakage. --- python/modes_kml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/modes_kml.py b/python/modes_kml.py index b081416..c324373 100644 --- a/python/modes_kml.py +++ b/python/modes_kml.py @@ -73,7 +73,7 @@ class modes_kml(threading.Thread, modes_output_sql): bearing = i*(2*math.pi/steps) #in radians lat_out = math.degrees(math.asin(math.sin(lat_rad)*math.cos(tmp0) + math.cos(lat_rad)*math.sin(tmp0)*math.cos(bearing))) lon_out = center_lon + math.degrees(math.atan2(math.sin(bearing)*math.sin(tmp0)*math.cos(lat_rad), math.cos(tmp0)-math.sin(lat_rad)*math.sin(math.radians(lat_out)))) - retstr += " %.8f, %.8f, 0" % (lon_out, lat_out,) + retstr += " %.8f,%.8f, 0" % (lon_out, lat_out,) retstr = string.lstrip(retstr) return retstr