I have a polygon that represents river banks. This polygon is seamless for all rivers. And I also have lines of each river. Here is the example of one situation:
Is there a way to split the seamless polygon into separate polygons representing banks of each river? Expected result:
I tried to play with the river buffers but I can't define the exact buffer size because the connection of the rivers can be various widths.
I am using the newest version of PostGIS.
Best Answer
You can create a hexagonal grid covering the river polygons:
Intersect (clip) this with the river polygons:
Join the closest river line id to each hexagon and union by river id: