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
The spec for the US National section says: "The core segment must always be present". But I'm able to decode GPP strings that don't explicitly include data for the core segment. Is this expected/desired?
The code just uses default values if the string doesn't have any data for the core segment. And if any segment is specified more than once, the last value wins (e.g. in the string "YA.QA", Gpc is false because "QA"--which corresponds to the bit string "010000000000"--comes after "YA"--which corresponds to the bit string "011000000000").
My initial expectation based on the spec was that these strings would be rejected as invalid, but that might just be me. If this is deemed to be undesirable/unexpected behavior, it's worth noting that other sections besides the US National section have the same behavior.
The text was updated successfully, but these errors were encountered:
matt-martin
changed the title
Is decoding of "segment" sections intentionally permissive?
Is decoding of "segmented" sections intentionally permissive?
Jun 2, 2023
The spec for the US National section says: "The core segment must always be present". But I'm able to decode GPP strings that don't explicitly include data for the core segment. Is this expected/desired?
Here are some examples...
DBABLA~ decodes as:
DBABLA~YA decodes as:
DBABLA~YA.YA decodes as:
DBABLA~YA.QA decodes as:
The code just uses default values if the string doesn't have any data for the core segment. And if any segment is specified more than once, the last value wins (e.g. in the string "YA.QA",
Gpc
is false because "QA"--which corresponds to the bit string "010000000000"--comes after "YA"--which corresponds to the bit string "011000000000").My initial expectation based on the spec was that these strings would be rejected as invalid, but that might just be me. If this is deemed to be undesirable/unexpected behavior, it's worth noting that other sections besides the US National section have the same behavior.
The text was updated successfully, but these errors were encountered: