YuKitsune / OneSim

OneSim is basically a Swiss Army knife for Flight Simulator enthusiasts.
1 stars 0 forks source link

Sector file parsing #25

Closed YuKitsune closed 3 years ago

YuKitsune commented 4 years ago

Need to be able to parse a sector file for the map:

YuKitsune commented 3 years ago

.sct/.sct2 format: http://www1.metacraft.com/VRC/docs/doc.php?page=appendix_f .ese format: https://www.euroscope.hu/wp/ese-files-description/

YuKitsune commented 3 years ago

.sct importer still WIP. Notes for when i get back:

  1. Need to parse Segments into their own list, then once the file has finished being parsed, take the segments, correctly order them, and convert them into an airway. This is because the order of the segments for airways aren't guaranteed to be in the correct order in the file. So, parse segments as is, then fix the order later
  2. Need to find a way to convert coords to Fixes if they exist, that way Airways only consist of fixes, and no coords
  3. Need to figure out how ARTCCs are gonna work
  4. Need to figure out how to match runways to airports. Distance might work, but we run the risk of runways being closer to some other airport than their actual owner. It's an edge case, but it's possible. (Do we even need runways really?)
YuKitsune commented 3 years ago

I've temporarily removed the SID snd STAR parsing from the .SCT file parser. Most divisions actually use that for general map diagrams. Those who do have actual routes in there are not named in a way that can easily be extracted. Since the .SCT file is too unreliable, I'll just get it from the EuroScope file instead, or have the manually entered.

YuKitsune commented 3 years ago

File parsers for .sct, .ese and .pof files have been added. Unit testing to be completed.

YuKitsune commented 3 years ago

Unit testing has been completed in 0adfd880ec4a20677bc17c430bc61eaa718beb13 Starting work on Upload -> Review -> Commit to DB flow

YuKitsune commented 3 years ago

I've stubbed the controller actions out right now. We've got two options here:

  1. Have a Web UI for upload, review and submission
  2. Use the Desktop or Mobile app for upload, review and submission.

Thoughts @KTechAviation ?

YuKitsune commented 3 years ago

Moving data review to #66

YuKitsune commented 3 years ago

Might need a solution for sector files which come in multiple parts (I.e. VATPAC)

YuKitsune commented 3 years ago

Sector Files can now be uploaded and parsed as of 56116cc45d1acc0da845e5c2dea9d73b0188475a Will work on storage, updating, and management in other tickets.