In QGIS there are two shapefiles representing the moving data between cells and one additional layer, see image below
Moving data defined by:
A polygon 'LayerA' (transparent squares with red outline). Besides it also relates to circles representing the movements within cells, visualized on the position of 'LayerA' geocentroids.
A polyline layer 'Flows' (yellow/grey arrows), convey values via connections between geocentroids of 'LayerA' features
Additionally, I have already transferred
"FLUX" and movement values within cells from 'LayerA' into 'LayerB' polygons, see my previous question: Inherited values between polygons in QGIS. It was done using the
There might be a meaningful solution/approach of transferring/transmitting/transforming flow connections represented by 'Flows' and its values from relations of 'LayerA' into relations of 'LayerB'.
How can I achieve those connections as polylines?
Additionally, new flows will inherit a similar style to 'Flows'.
By the request, I can provide a sample of the data.
Flows will exist not between features of 'LayerA', but between features of 'LayerB'. The main aim is to achieve the attribute
"FLUX" (i.e. from/to) for connections between 'LayerB' possible as table/Origin-Destination Matrix.
There are some requirements/criteria that should be adhered:
There are no flow connections between features' parts (selected in yellow) in the same cell
There are no connections between the same feature even its parts are in different cells
Connections exist between parts of features 'LayerB' (based on
"Union"output) if they are entirely within two distinct 'LayerA' cell features
"FLUX"-value that is conveying, will be calculated as shown on the image below.
For instance, there is a connection between two cells
100. Assuming other values, the
B''will be around
100is only a single example.