In QGIS, I have two lines. The endpoints are near each other, but not quite aligned. I'd like to turn the two lines into one, with the two endpoints merged into midpoints.
The closest I've been able to come is with "Merge selected features." That gives me one feature, but it's comprised of two disjoint lines -- there's no line between the endpoints.
I'm looking for something that behaves similarly to Illustrator's Join Paths feature (Object > Paths > Join).
Does QGIS do that?
Answer
Quick answer: no! There's no tool like that to do that operation directly on the layer (the "Join Two Lines" plugin requires intersection).
You could do it for a very simple layer by turning the lines to points (extract nodes) then joining with points2one (line output) but this would be MUCH slower than just editing by hand:
- Make sure you have snapping (Settings|Snapping options ...) turned on for your line layer (5 pixels works well for me).
- Create a new line from one endpoint to the other.
- Select all three lines (the two original lines + the new one) and merge them (Edit|Merge selected features or toolbar button).
No comments:
Post a Comment