Quantcast
Channel: Question and Answer » postgresql
Viewing all articles
Browse latest Browse all 1138

Finding lines of similar attribute with respect to nodes connected to its both Ends

$
0
0

I have line networks with node generated for Start and End Point . how to check if a line has correct attribute with respect to point created at its End. for instance FuID_Line = ABC_BDQ and Start Point having FuID_Po =ABC and End point having FuID = BDQ.

Update:

I think I am not clear enough previously in my question. actually I dont want to generate points. I have lines and with end points(Start/End) already given what I want to check is if line has
FuID = 560_960 attribute. it should have start point value pID=560 and End point value pID=960.

I want to join attributes to line feature something similar to this one

+--------+---------+-----+-------+---------+
| obj_id |  Fuid   | pid | pid_1 | remark  |
+--------+---------+-----+-------+---------+
|      1 | 560_960 | 560 |   960 | match   |
|      2 | 960_560 | 960 |   560 | match   |
|      3 | 261_690 | 260 |   690 | unmatch |
|      4 | 420_921 | 420 |   926 | unmatch |
+--------+---------+-----+-------+---------+

enter image description here

Note:Lines are sometimes overlapped to each other.


Viewing all articles
Browse latest Browse all 1138

Trending Articles