mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 03:05:33 +00:00
further fix to geolocation.py
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import math
|
import math
|
||||||
|
|
||||||
def dms2dd(degrees, minutes, seconds, milliseconds=0):
|
def dms2dd(degrees, minutes, seconds, milliseconds=0):
|
||||||
dd = float(degrees) + float(minutes)/60 + float(seconds)/(3600) + float(milliseconds/3600000)
|
dd = float(degrees) + float(minutes)/60.0 + float(seconds)/(3600.0) + float(milliseconds/3600000.0)
|
||||||
return dd
|
return dd
|
||||||
|
|
||||||
def dd2dms(dd):
|
def dd2dms(dd):
|
||||||
|
|||||||
Reference in New Issue
Block a user