Skip to content

[fdsnws2inv] Too conservative restrictedStatus conversion #110

@andres-h

Description

@andres-h

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions