You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! This is a super helpful website, so thank you for making it. I have been creating some polygons with it (and pasting in externally created ones for quick visualization), and it works like a charm.
However, I noticed that if I draw a polygon in a clockwise order of points, this order is retained in the output WKT, even though the spec for WKT requires that exterior polygon coords of a polygon are ordered counter-clockwise, i.e. they must follow the right-hand rule. Likewise, a pasted in WKT that doesn't follow the right-hand rule can not be validated or corrected.
So this is just a suggestion that it would be very helpful to have something like a "force right-hand rule" checkbox that would correct any invalid coordinate order. Thank you!
The text was updated successfully, but these errors were encountered:
Slightly different approach would be to not change any coordinates in the text box, but to apply this transformation when the user clicks Copy as > WKT, such that any "exported" WKT through that method does follow the rule.
As a first step I have implemented automated fixing of polygons created using the drawing tool. I'll look into a checkbox or button for validating pasted WKT.
Hello! This is a super helpful website, so thank you for making it. I have been creating some polygons with it (and pasting in externally created ones for quick visualization), and it works like a charm.
However, I noticed that if I draw a polygon in a clockwise order of points, this order is retained in the output WKT, even though the spec for WKT requires that exterior polygon coords of a polygon are ordered counter-clockwise, i.e. they must follow the right-hand rule. Likewise, a pasted in WKT that doesn't follow the right-hand rule can not be validated or corrected.
So this is just a suggestion that it would be very helpful to have something like a "force right-hand rule" checkbox that would correct any invalid coordinate order. Thank you!
The text was updated successfully, but these errors were encountered: