on-internet
← Community

Buffer a polyline by variable distance

Stack Overflow ·

I have a list of points (x,y) that constitute a polyline, each point also has a value (m). I want a polygon which is the buffer of the polyline with variable distance m. So at each point, the polygon is 2×m wide (if not overlapping), perpendicular to the direction of the polyline at that point. A recipe is: Divide up linestring into segments. For each segment: buffer the 2 end points, each point with it's value Take the convex hull of the buffers Union all convex hulls. I am looking for a solution that is computationally faster than implementing these steps naively using the corresponding shap

Comments

Sign in or sign up to comment and upvote.

No comments yet.