pinakographos / Hachures

A QGIS script to generate automated hachure lines
GNU General Public License v3.0
32 stars 7 forks source link

Lines Going out of Bounds #5

Closed pinakographos closed 4 months ago

pinakographos commented 4 months ago

There are hundreds of lines going out of bounds. Not by more than jump_distance, though, I don't think.

image

These should be cut off because they're causing the contour line (in green, drawn along the boundary) to be unnecessarily divided into hundreds of segments, which is probably having a modest performance impact.

hachure_generator checks for several reasons to stop a hachure line, but, with one exception (the zigzag check), it doesn't clean up the garbage left behind.

pinakographos commented 4 months ago

It's a little weirder than I thought. These poking-out hachures are multilinestring:

image

That single feature pokes out of the raster, while part of it remains inside. Likely quite related to #6. A long hachure starts well within the raster, eventually jumps out of it, and then when the contour clips it, you get part of it inside the raster and part outside. So, solution 2 for #6 is looking better. I thought it was the other way around last night.