0

I'm trying to make a buffer around a line, which I subsequently have to split in non overlapping zones (having the same length along the line).

The sketches below shows an example of what I have in mind, but I was wondering if any algorithm already exists that does this. In fact every part of the buffer is assigned to the closest piece linepiece here.

example

If a solution only exists for the case on the left I'd also be happy (no strong corners exist in my lines anyway).

I'm mostly interested in a solution in Python (open source), but if you know another module doing this (preferably open source), please mention as well, perhaps I can convert the algorithm myself.

put on hold as off-topic by Vince, Andre Silva, xunilk, LaughU, csk Jan 15 at 21:28

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "When seeking help to debug/write/improve code always provide the desired behavior, a specific problem/error and the shortest code (as formatted text, not pictures) needed to reproduce it in the question body. Providing a clear problem statement and a code attempt helps others to help you." – Andre Silva, xunilk, LaughU, csk
If this question can be reworded to fit the rules in the help center, please edit the question.

  • I can't think of an algorithm that does this automatically; at the very least, I think you'd need to split the line segments equally before buffering. Are you open to raster-based solutions as well? (Most of what I'd suggest are Esri tools, but open-source alternatives to them should be available.) – Erica Jan 11 at 14:18

Browse other questions tagged or ask your own question.