One possibility:
Estimate the center of the polygon with the mean of the x coords and
the mean of the y coords.
Calculate the angle of each point from that center point using the
atan2 function
sort the data by the angle calculated.
This will not be perfect if you have inlets and peninsulas, but
Hello,
I have the contour of the shoreline of a lake. I have measured data points
away from the lake shore signifying a particular depth. The data is not
ordered as a polygon and hence trying to draw it creates a series of lines
all over the place. I would like to turn the points into a ordered
2 matches
Mail list logo