Merging polylines

Yes, but since you can’t be bothered to post code/geometry without being asked, I can’t be bothered to reply any further.

Please read this, esp. #3:

3. Attach minimal versions of all the relevant files