I've got two tables:
- tableA holds the objects with it's geometry
- tableB holds holds pairs of two objects (ids, each in a separate column) from table1
Now I want to calculate the concaveHull for the pairs in each row coming from tableB. The SQL (for one pair only) is quit simple:
SELECT ST_ConcaveHull (ST_Collect(tA.geom),1)
FROM tableA AS tA
WHERE id IN (250,214)
The "WHERE id IN (250,214)"
is an example object pair stored in tableB.
How can I do this calculation for each pair from tableB iterative? With joins or loops? I cannot get it work.