Open tsteven4 opened 2 months ago
Coverage variation | Diff coverage |
---|---|
:white_check_mark: +0.01% | :white_check_mark: ∅ |
Codacy will stop sending the deprecated coverage status from June 5th, 2024. Learn more
I also note these files were deleted, not moved to deprecated, so I had to resurrect this from git.
@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
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.
Can do - the spec was historically vague and later tidied up so there's a lot of pseudo-compliant files out there, would you like only strictly valid files or dubious ones too?
On Thu, 16 May 2024, 11:35 pm tsteven4, @.***> wrote:
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 https://github.com/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.
You can view, comment on, or merge this pull request online at:
https://github.com/GPSBabel/gpsbabel/pull/1280 Commit Summary
- 91282f8 https://github.com/GPSBabel/gpsbabel/pull/1280/commits/91282f885c4e1efed3e99ea571181b56df4f253a bring back See You support
File Changes
(8 files https://github.com/GPSBabel/gpsbabel/pull/1280/files)
- M gpsbabel.qrc https://github.com/GPSBabel/gpsbabel/pull/1280/files#diff-2e5fd1dadf400f4726f8780a5d04b0c502d875b5adc9c209c77a0ab743d9f259 (1)
- M reference/format0.txt https://github.com/GPSBabel/gpsbabel/pull/1280/files#diff-a1a9c477fad9471d0b4f2d887fab796ce793fcb01c1cadbbf310bee3881e3298 (1)
- M reference/format1.txt https://github.com/GPSBabel/gpsbabel/pull/1280/files#diff-bf430ae0be2cee89cb4d369e126449875d8deec88d2acf89efce1a503de6cb7a (1)
- M reference/format2.txt https://github.com/GPSBabel/gpsbabel/pull/1280/files#diff-f6d166bd3d278141be7daa170f5531a592d5d45fd567fa46d5f43a0e789d76ea (1)
- M reference/format3.txt https://github.com/GPSBabel/gpsbabel/pull/1280/files#diff-d58930ee37f9d5466760d6c20f6fda709c70b296055f6c9b664d5469019efd53 (18)
- M reference/help.txt https://github.com/GPSBabel/gpsbabel/pull/1280/files#diff-0fd772e62c38a497465c72067c82d56c16e980825e1d13b4602c004e07d2d7f0 (9)
- A style/cup.style https://github.com/GPSBabel/gpsbabel/pull/1280/files#diff-6ad67c9269e2964375a6dc830b083f3e1b9c3a273d373718e1b0a04c5f666887 (46)
- A xmldoc/formats/cup.xml https://github.com/GPSBabel/gpsbabel/pull/1280/files#diff-e0168915cf03d74bc735ac72ce62b6898c555812481bf259ac29bf894adbfb9b (14)
Patch Links:
- https://github.com/GPSBabel/gpsbabel/pull/1280.patch
- https://github.com/GPSBabel/gpsbabel/pull/1280.diff
— Reply to this email directly, view it on GitHub https://github.com/GPSBabel/gpsbabel/pull/1280, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACODF35NO4QUXXS2ZY3IQTZCURDVAVCNFSM6AAAAABH3AANVGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGMYDCMZYHE2TIMA . You are receiving this because you were mentioned.Message ID: @.***>
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
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)
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.
As it was worked well for many people. I think the only reason no one else noticed yet is distros stable releases lagging behind.
On Fri, May 17, 2024 at 4:17 PM tsteven4 @.***> wrote:
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.
— Reply to this email directly, view it on GitHub https://github.com/GPSBabel/gpsbabel/pull/1280#issuecomment-2117713711, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACODFZGVBYG3KCVHZNGKVTZCYGPZAVCNFSM6AAAAABH3AANVGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJXG4YTGNZRGE . You are receiving this because you were mentioned.Message ID: @.***>
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.