Jump to content

Recommended Posts

Posted

In little_navmap_navigraph.sqlite boundary geometry data, How can I parse this datas by python? Because I want to add some airspace in it. I have already try to use python(shapely) wkt to parse, but it seems not this format.

Posted

It is a very simple binary format. First unsigned 32 bit int is number of lat/long pairs followed by the lat/long pairs as 32 bit floating points.

The geometry is prepared in LNM when compiling and does not contain any structures defining circles or arcs. It is just a polygon.

This class is used to read and write the data: https://github.com/albar965/atools/blob/release/4.0/src/fs/common/binarygeometry.cpp

Alex

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...