Any way to extract airspaces from the navdata sql? #1088
-
I'm sorry if this isn't the place to ask this but im working on a personal project of mine and need a way to extract airspace data and turn them into GNG coordinates. Specifically the geometry BLOB binary data stored in the BOUNDARY table of the sql db. (I dont know if this is a roundabout way of doing this) I'd be greatful if any of you cound point me in the right direction. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
The format is quite simple. Reading and writing is implemented here: https://github.com/albar965/atools/blob/master/src/fs/common/binarygeometry.h It starts with an unsigned 32 bit integer which contains the number of points. Then following single precision floating point number pairs for lon/lat. The geometry is pre-calculated which means that circles and arcs are converted to polygons. |
Beta Was this translation helpful? Give feedback.
The format is quite simple. Reading and writing is implemented here:
https://github.com/albar965/atools/blob/master/src/fs/common/binarygeometry.h
https://github.com/albar965/atools/blob/master/src/fs/common/binarymsageometry.cpp
It starts with an unsigned 32 bit integer which contains the number of points. Then following single precision floating point number pairs for lon/lat.
The geometry is pre-calculated which means that circles and arcs are converted to polygons.