There is an issue with partially restricted networks and stations (eg., rolling embargo). restrictedStatus="partial" is translated to restricted="true", in which case all child elements are considered restricted by fdsnws, regardless of the value of their restricted attribute.
Suggest changing:
sc_x->setRestricted(x->restrictedStatus() != FDSNXML::RST_OPEN);
to
sc_x->setRestricted(x->restrictedStatus() == FDSNXML::RST_CLOSED);
True restrictedStatus could be preserved via JSON comments. Should I do a pull request?
There is an issue with partially restricted networks and stations (eg., rolling embargo).
restrictedStatus="partial"is translated torestricted="true", in which case all child elements are considered restricted by fdsnws, regardless of the value of theirrestrictedattribute.Suggest changing:
sc_x->setRestricted(x->restrictedStatus() != FDSNXML::RST_OPEN);to
sc_x->setRestricted(x->restrictedStatus() == FDSNXML::RST_CLOSED);True restrictedStatus could be preserved via JSON comments. Should I do a pull request?