Deleting overlapping lines on maps

Hi there,

I’ve been reading here about problems with overlapped lines

I want to lasercut a map with provinces, such:
https://upload.wikimedia.org/wikipedia/commons/8/8d/Distriktsidrottsförbund.svg

Lines of provinces on the borders are repeated (overlapping). The lasercutter passes twice on each border increasing the cutting time and decreasing the quality.

I tried the “remove overlapping lines” option but it doesn’t work.

Any solution?

I am using Inkscape and it is very tedious to remove the repeated lines

thanks

If you are tracing the map as a raster image, LightBurn will convert each line into two vector paths, separated by a small space. Because they’re not exactly overlapping, the Path Planner optimization won’t remove one.

Perhaps increasing the overlap tolerance (in the Optimization settings) will do the trick. Try zooming in on the offending lines, measure the separation, and use 1.5× that distance. Make sure it’s not removing anything else of interest, though.

Inkscape has a centerline trace function that should create one vector down the middle of (most) raster lines, which may produce better results.

1 Like

The lines between everything is the red layer… you can shift-click on that layer in the cut/layer menu and select only the red layer…

You can then delete all of that layer or you can turn the output/show off for that layer only.


What is the purpose of the red layer?

I’ve separated it out…

The other layer is set to fill, is that what you want it to do?

If you delete the red layer, it will cut along the lines…

I’m probably not completely understanding what you want for output…?

:smile_cat:

wrong idea - sorry

Hi,

The image is not raster but vector.

The map of Sweden I shared is not the best example because of these red lines. Forget about them

The black lines are provinces, if one ungroups them you can see how the border lines are repeated, here I separate I province and you can see how the two lines are the same

If I keep zooming in I never see two lines.

Ah! That’s much better!

Having each province as a separate entity makes it easier for folks creating jigsaw puzzles, as they can apply kerf adjustments to each piece. In your case, that’s not helpful.

However, I did this:

  • Import that SVG unchanged
  • Put it on a cut layer
  • Turn on Optimize Cut Path
  • Select Remove overlapping lines with a 0.025 mm tolerance
  • Run Preview

The laser path then covers all the lines exactly once, without duplicating any of the overlapping sections.

That happens regardless of whether the entire map is grouped into a single object or it’s ungrouped into separate provinces.

So the question is: what’s different between your LightBurn configuration and mine?

1 Like

Try zooming in and selecting that line…

Then delete it… is it still there?


I’ve had some art that has a line right on top of the other line. If I select it, I can delete the extra line. The moving ants when selected actually has a different look to it…


Give @ednisley method a try and see if that works… I’ve never tried with a bunch of lines…

:smile_cat:

In that case - how about using Boolean Weld command?

After ungrouping the map, I clicked to select a province and moved it away: the overlapping borders overlap exactly. It’s a nicely done map!

The border has two overlapping paths, each in the two separate provinces, so there’s no “line” to select.

ednisley, the steps you describe are exactly the ones I am doing. I will check on the laser on monday and make a video of the preview

jkwilborn, How can I delete a single line? I can’t ungroup further than provinces

JimNM, if I weld (after ungrouping), the lines (both) on the border disappear, that’s strange:
Before:
image

After:
image

OK - sorry to give you bad info. Thanks for checking my idea :slight_smile:

1 Like

If you use Lightburn, there’s an optimization setting in the laser tab to ignore overlapping lines. Cuts once. Super helpful.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.