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
Parsing an incomplete Bearing angle result in a wrong value.
Example :
When typing a bearing it usually goes like this. Step by step : S S4 S45
... S45°00'00"E
When parsing the first two letters S4, which is an incomplete Bearing because we dont know the direction yet East or West, the Parser return a value that's wrong : North something...
I think the result should be an error.
parsing an bearing with lowercase letters
When parsing a bearing with lowercase letters, it also returns a wrong value. Ex: s45°00'00"e -> result : North something...
I think the result should be a valid bearing.
Thanks
The text was updated successfully, but these errors were encountered:
I agree.
In addition, I have seen several special formats which are considered valid Bearings, at least some people type it like this:
N (stands for N00°E
NE (stands for N45°E)
NW (N45°W)
I'm a bit conflicted how smart we make this, and if we live-parse the string several times while the user is typing, at certain points in the string, it may represent a valid bearing, while others are invalid.
Are we good if we follow the rule "Once there is a number specified, it only is a valid value, if the suffix is there"?
parsing an incomplete Bearing
Parsing an incomplete Bearing angle result in a wrong value.
Example :
When typing a bearing it usually goes like this. Step by step :
S
S4
S45
...
S45°00'00"E
When parsing the first two letters
S4
, which is an incomplete Bearing because we dont know the direction yetEast
orWest
, the Parser return a value that's wrong :North something...
I think the result should be an error.
parsing an bearing with lowercase letters
When parsing a bearing with lowercase letters, it also returns a wrong value. Ex:
s45°00'00"e
-> result :North something...
I think the result should be a valid bearing.
Thanks
The text was updated successfully, but these errors were encountered: