예제 #1
0
파일: profile.py 프로젝트: cclauss/mf-next
 def _filter_coordinate(self, coords):
     # 1mm accuracy is enough for distances
     return round(coords * 1000.0) / 1000.0
예제 #2
0
파일: profile.py 프로젝트: cclauss/mf-next
 def _filter_dist(self, dist):
     # 10cm accuracy is enough for distances
     return round(dist * 10.0) / 10.0
예제 #3
0
파일: profile.py 프로젝트: cclauss/mf-next
 def _filter_alt(self, alt):
     if alt is not None and alt > 0.0:
         # 10cm accuracy is enough for altitudes
         return round(alt * 10.0) / 10.0
     else:
         return None
예제 #4
0
파일: profile.py 프로젝트: cclauss/mf-next
 def _filter_coordinate(self, coords):
     # 1mm accuracy is enough for distances
     return round(coords * 1000.0) / 1000.0
예제 #5
0
파일: profile.py 프로젝트: cclauss/mf-next
 def _filter_dist(self, dist):
     # 10cm accuracy is enough for distances
     return round(dist * 10.0) / 10.0
예제 #6
0
파일: profile.py 프로젝트: cclauss/mf-next
 def _filter_alt(self, alt):
     if alt is not None and alt > 0.0:
         # 10cm accuracy is enough for altitudes
         return round(alt * 10.0) / 10.0
     else:
         return None