I need help with merging two table and create geometry. I have two points layer with features tables and try create polyline layer. When I create virtual layer with next querry then result is polyline layer with specifying columns:
select a.field1, b.field2, makeline(a.geometry, b.geometry) as geometry
from a
inner join
b On b.id = a.id
But when I try select all field from tables result is point layer with features:
select a.*, b.*, makeline(a.geometry, b.geometry) as geometry
from a
inner join
b On b.id = a.id
There is a way to create lines and obtain all column in new layer?
makeline(a.geometry, b.geometry) as line_geomand specify to QGIS thatline_geomis the geometry field. – J. Monticolo Jul 26 '22 at 11:27