eurocontrol-swim / aixm-graph

Other
4 stars 2 forks source link

display association direction #14

Open porosnie opened 4 years ago

porosnie commented 4 years ago

it would be nice to show also the direction of an association:

However, I do not know if there is the possibility to use arrows on the graph connections.

antavelos commented 4 years ago

Yes, it is possible to draw arrows on the graph.

I'm not sure I understand the directions though. Could you please explain it a bit further?

Also the associations displayed in the graph are a mix of original ones and extensions. Should we differentiate among them?

porosnie commented 4 years ago

I realise that I forgot an essential word in my first bullet point. It shoudl read:

That's because the element is used when the associations are coded from the other end in the original file.

If we consider the association between AirportHeliport and the OrganisationAuthority as an example. This association is visible in the original AIXM file only from the AirportHeliport, because it is the feature that caries the xlink:href towards the OrganisationAuthority. Therefore, I would like the line to have an arrow from AirportHeliport towards OrganisationAuthority.

I think that this can be based on the information that is already in the Skeleton file. The AirportHeliport has a child element

This is not an element, therefore it comes directly from the original file. Thus, the arrow should be from AirportHeliport towards OrganisationAuthority.

The AirportHeliport also has a child element: . This is an element, therefore the association is "reverse". It should have an arrow from Runway towards AirportHeliport.

antavelos commented 4 years ago

Ok, now it's clear. Thanks!