You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Keep allowing +180 in GpxLongitude, and convert it to -180 only when writing XML
This feels like the way to go. Perhaps a GpxWriterSettings flag could be added that allows technically violating the schema and skipping this step.
Hmm, on second thought, not right now.
Reject +180 in the GpxLongitude constructor; convert +180 to -180 when converting from NTS
This is actually slightly better. If we start out by making something an error, then we can relax that error condition later without worrying about breaking working code.
In the GPX schema,
longitudeType
's upper-bound is 180, exclusive.GpxLongitude
, however, allows values with +180.This mismatch makes it possible, under normal circumstances, to produce values that are invalid for GPX.
Legal options:
GpxLongitude
, and convert it to -180 only when writing XMLGpxLongitude
constructor; convert +180 to -180 when converting from NTSGpxLongitude
constructorThe text was updated successfully, but these errors were encountered: