Hi I have a link and a node SQL Server table as below.
I need to build a number of lines using the node and link tables. Non-vertex nodes denote end points of
the line.
In C# I possibly need build a dictionary of coordinates for each line.
Any suggestions what would be the best way to achieve this.
I need to build a number of lines using the node and link tables. Non-vertex nodes denote end points of
the line.
In C# I possibly need build a dictionary of coordinates for each line.
Any suggestions what would be the best way to achieve this.
NodeID Coords Type
A x1,y1 Valve
B x2,y2 Valve
C x3,y3 Valve
D x4,y4 Vertex
E x5,y5 Valve
Fromnode Tonode
A B
B C
C D
D E
Expected Output
Line 1 coordinates: (x1,y1), (x2,y2)
Line 2 coordinates: (x2,y2), (x3,y3)
Line 3 coordinates: (x3,y3), (x4,y4), (x5,y5)
Line 1 coordinates: (x1,y1), (x2,y2)
Line 2 coordinates: (x2,y2), (x3,y3)
Line 3 coordinates: (x3,y3), (x4,y4), (x5,y5)