PostgreSQL/QGIS/LizMap environment
I have a Postrgre DB POINT layer:
-[ RECORD 1 ]+-----------------------------------------------------------------------------------
buildingid | 1
nodeid | 2
nodename | term.home.myspan
ipaddress | 10.10.10.2
hub |
buildingname | Madrid Home
buildingcity | Madrid
geom | 01010000E0E6100000BDB0AF7CC3010DC0BE1E5DCCD133444000000000000000000000000000000000
type | TERM
span | MAD05-PAR01
coloprovider | REE
cpphone | +34 91 111 222
cpemail | [email protected]
-[ RECORD 2 ]+-----------------------------------------------------------------------------------
buildingid | 3
nodeid | 3
nodename | term.lis01.myspan
ipaddress | 10.10.10.12
hub | LIS01
buildingname | Lisbon Hub
buildingcity | Lisbon
geom | 01010000E0E61000000A57271C004722C0D1FD0BCEA25D434000000000000000000000000000000000
type | TERM
span | LIS01-BIO02
coloprovider | Refer
cpphone | +351 51 666 777
cpemail | [email protected]
I would like to create a new LINE layer (new DB table linked by FK to the POINT table), and make a line joining those two points. I would like to have the LINE changing end point when I change the geometry value on POINT table.
Any help?