-
Notifications
You must be signed in to change notification settings - Fork 46
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
Waypoint name can be an empty string #70
Comments
Sounds good, do you want to file a PR? |
Here we go. I didn't find any test specific for the waypoint. Do you already have something or do I add one? |
I'm not sure, I'm not from around 😅. |
bors bot
added a commit
that referenced
this issue
May 27, 2022
72: Allow empty elevation tags r=urschrei a=ebcrowder Similar to #70, I have a GPX file that has self-closing `elevation` tags, which of course, contain no value. This appears to be valid per the GPX spec at https://www.topografix.com/GPX/1/1/#type_ptType. The GPX file was generated by a Wahoo bike computer. This change edits the parsing logic to use a default `f64` value of `0.00` for these cases. I didn't see a precedence for handling similar optional values in this lib, so let me know if I should handle this differently in accordance with the project's goals. - [x] I agree to follow the project's [code of conduct](https://github.com/georust/geo/blob/master/CODE_OF_CONDUCT.md). - [x] I added an entry to `CHANGELOG.md` if knowledge of this change could be valuable to users. --- Co-authored-by: Eric Crowder <eric@ebcrowder.dev>
bors bot
added a commit
that referenced
this issue
May 27, 2022
72: Allow empty elevation tags r=michaelkirk a=ebcrowder Similar to #70, I have a GPX file that has self-closing `elevation` tags, which of course, contain no value. This appears to be valid per the GPX spec at https://www.topografix.com/GPX/1/1/#type_ptType. The GPX file was generated by a Wahoo bike computer. This change edits the parsing logic to use a default `f64` value of `0.00` for these cases. I didn't see a precedence for handling similar optional values in this lib, so let me know if I should handle this differently in accordance with the project's goals. - [x] I agree to follow the project's [code of conduct](https://github.com/georust/geo/blob/master/CODE_OF_CONDUCT.md). - [x] I added an entry to `CHANGELOG.md` if knowledge of this change could be valuable to users. --- Co-authored-by: Eric Crowder <eric@ebcrowder.dev>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello.
I found out that I have a GPX file with a waypoint name which is empty:
Looking at the GPX spec: http://www.topografix.com/GPX/1/1/#type_wptType this seems to be valid.
But this crate makes it mandatory (
allow_empty: false
here):gpx/src/parser/waypoint.rs
Line 78 in fec2051
I believe we should allow it empty, don't you think?
Thanks
The text was updated successfully, but these errors were encountered: