kopia lustrzana https://github.com/glidernet/ogn-python
Consider landable points only
rodzic
829f52f658
commit
6ab3d1a392
|
@ -103,7 +103,8 @@ def compute_takeoff_and_landing():
|
|||
sq2.c.device_id,
|
||||
Airport.id) \
|
||||
.filter(and_(func.ST_DFullyWithin(sq2.c.location, Airport.location_wkt, airport_radius),
|
||||
between(sq2.c.altitude, Airport.altitude-airport_delta, Airport.altitude+airport_delta)))
|
||||
between(sq2.c.altitude, Airport.altitude-airport_delta, Airport.altitude+airport_delta))) \
|
||||
.filter(between(Airport.style, 2, 5))
|
||||
|
||||
# ... and save them
|
||||
ins = insert(TakeoffLanding).from_select((TakeoffLanding.timestamp,
|
||||
|
|
Ładowanie…
Reference in New Issue