You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
619 B

- [(subtrack, region)] = slice track by intersecting regions
- for each (subtrack,region):
- for each point of subtrack:
- check point.alt <= region.floor@point or point.alt >= region.ceil@point
getCeilAltAtPoint(region, point):
if region.ref == absolute
return region.ceil
elif region.ref == relative:
gb = resolvegetGroundHeight(point)
return region.ceil + gb
getGroundHeight(self, point)#SQL:
return int(self.query("SELECT ground_base AT ...."))
getGroundHeight(self, point)#CONNECTED:
return int(do_get_req("http://......?lon=%d&lat=%d"
%(point.y, point.x))