Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bring back See You support #1280

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

bring back See You support #1280

wants to merge 1 commit into from

Conversation

tsteven4
Copy link
Collaborator

OK, I will bite on this one. cup is a style based format which requires minimal support. Just as that came out of my mouth the cup documentation bit me on the docbook 4 -> 5 conversion we did some time ago, nothing is free.

What we never had was any testing of the cup format. @Plantain can you supply some small files representative of this format and verify the results of a conversion to and from that format? If so perhaps we can bring this one back.

Copy link

codacy-production bot commented May 16, 2024

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.01%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (15d3d22) 27614 17205 62.31%
Head commit (91282f8) 55237 (+27623) 34419 (+17214) 62.31% (+0.01%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#1280) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Codacy will stop sending the deprecated coverage status from June 5th, 2024. Learn more

@tsteven4
Copy link
Collaborator Author

I also note these files were deleted, not moved to deprecated, so I had to resurrect this from git.

@tsteven4
Copy link
Collaborator Author

@Plantain I will also point out that with style based formats like cup, you can very likely use a version of gpsbabel that had this format deleted if you have the style file (cup.style) e.g.
gpsbabel -i xcsv,style=/path/to/cup.style -f cupfile -o gpx -F gpxfile

@PacketFiend
Copy link
Contributor

I might be able to get my hands on some SeeYou files, it's used by many glider pilots. I don't use it myself but I can certainly ask around.

@Plantain
Copy link

Plantain commented May 17, 2024 via email

@Plantain
Copy link

Plantain commented May 17, 2024

CUP files collected just from my computer, not guaranteed to be technically valid, but all "real" files being actually used.
cup.tgz
Spec: https://downloads.naviter.com/docs/SeeYou_CUP_file_format.pdf

CUPX files (an extended format of cup, suspect this was not previously supported and not necessarily proposing it needs to be - https://downloads.naviter.com/docs/SeeYou_CUPX_file_format.pdf ):
cupx.tgz

@Plantain
Copy link

For the strictest validation, there is a python library aerofiles that checks very rigidly (https://aerofiles.readthedocs.io/en/latest/api/seeyou.html)

For more 'general-purpose' validation, I can manually test files across broadly used software (SeeYou Desktop/Cloud/Navigator, and various other devices)

@tsteven4
Copy link
Collaborator Author

Our support for seeyou assumes a few things that are not guaranteed by the latest cup format spec I could find.
https://github.com/naviter/seeyou_file_formats/blob/main/CUP_file_format.md
i) we assume a fixed order of the columns. specifically: name,code,country,lat,lon,elev,style,rwdir,rwlen,freq,desc
ii) we assume elevation is designated by m for meters. we do not support ft for feet.
We read the following fields: code, lat, lon, elev, desc.

These assumptions allow us to use our generic xscv format with a style file to designate the fields. With this approach we don't have to write any c++ code, just the style file (cup.style). If you have been happy with the support for seeyou that gpsbabel has offered in the past which had these assumptions then we can go ahead. Alternatively, if you desire support that allows for the variability allowed in the latest spec then a custom format would be required. This would be much more work to develop and maintain, and I am not willing to volunteer for that. My willingness to bring this format back is predicated on being able to support it with a style file as we have always done.

@Plantain
Copy link

Plantain commented May 17, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants