I have a table in an SQLite database with a non spatial table that contains 6 sets of coordinates, representing different features within a record. I would like to generate a series of layers (lets say 6 for argument's sake) and because my dataset is going to grow I don't want to create new tables each time...
I think I'd like to create query that has a geometry column plus the related columns taken from my record. That would (I hope) allow me to requery the table when the dataset is updated...
I thought about:
Select 'Point (' || x1 || ' ' || y1 ||')' as geometry, name, description, uuid from mytable
That gives me the columns, with a WKT column masquerading as my geometry. Where I get stuck is throwing this on to the canvas... I tried 'load as layer' in DB manager, but when I select geometry as my geometry column nothing is loaded to the canvas.