I have been checking a lot on this link but its not exactly what I want.
Combine overlapping/touching lines into one long simple geometric line | Community
I have one geopackage with lines of different types that overlap, 2 attribute types, the blue type and the red. As you can see they overlap.
I want the red lines to take priority, meaning where the red lines are the underlying blue lines should be remove so I only have 1 layer of polygons with the 2 types. Note that the length of the blue line doesn’t always match the length of the red so the underlying blue line have to be cut. I have filtrered them, tried line combiner, line on line overlay which generates INVALID_POLYGON_GEOMETRY_VERTICES error.
- Reader polylines with attributes
- TestFilter, filters and splits the 2 types I want based on the type name
- ???
- Before reader im gonna do a snapper since dataset have some gaps some of the read doesnt reach the entire way to the blue in some instances.
Result example (also want snapper in the circle area so the gap is fixed but think I figured that out. )