I would like to use a function like SAGA LINE-POLYGON INTERSECTION in QGIS, that splits a polyline into several polylines at every intersection of another layer of polygons. I would like the polylines index to be incremented along the orignal polyline (start_point = Index : 0 ; end_point index = 126)
In others words, I would like to keep the same logic of index incrementation used while digitizing the orignal polyline, defined by start_point and end_point.
I use 2 layers:
- Polygons layer named : Polygon
- Polyline layer named : Main Polyline My aim is to create one polyline at the intersection of every polygon. That is why I use this function : SAGA LINE-POLYGON INTERSECTION.
It creates a new layer Intersection in which there are several polylines as I expect. The problem is that the index given at every new polyline created doesn't match with the digitization of the original polyline
Regarding the start point and end point of the original Polyline, the index should look like this :
I'm blocked at this step. My final aim is to attribute an incremented index to each polygon along the (original) polyline, following its direction.
Could my method work? if so, how to fix the index issue?
If not, what workflow should I use instead?