I have a trajectory given by GPS which I store as a
ST_LineString() and I'd like to know the area covered by the line string. I know the
"width" of the trajectory, but I'm not sure how to approach the problem.
I thought the following steps might do what I want.
- break line string into an array of two-point segments (simple lines)
- create a rectangle from the two-point-line and width
st_unionaggr()over all rectangles to create one polygon and then call
So my question is: Is there an effective way to create a rectangle from given line and width? And if so, do you think this solution is viable or is there a more elegant way to do it?