arthur-e / Wicket

A modest library for moving between Well-Known Text (WKT) and various framework geometries
https://arthur-e.github.io/Wicket/
Other
586 stars 226 forks source link

Write outputs polygon elements in counter-clockwise order #153

Open ggfuzzy opened 3 years ago

ggfuzzy commented 3 years ago

Attempted to use output of wkt write() to feed Oracle OSD, but kept getting Oracle error stating Error: ORA-20002: WKT provided is invalid: 13367 [Element <1>] [Ring <1>]. After troubleshooting, realized that Oracle OSD only functions properly if wkt elements are in clockwise order. I'm wondering if the write() method couldn't be modified to allow either clockwise or counterclockwise output. I looked at the Wkt.Wkt.prototype.write() function and should be possible and not too difficult.

arthur-e commented 3 years ago

@ggfuzzy, I'm definitely open to a Pull Request for this issue!

ggfuzzy commented 3 years ago

Thanks Arthur!

On Wed, Mar 31, 2021 at 1:57 PM K. Arthur Endsley @.***> wrote:

@ggfuzzy https://github.com/ggfuzzy, I'm definitely open to a Pull Request for this issue!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arthur-e/Wicket/issues/153#issuecomment-811291691, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKB5WQA26CZYDBOIHXNWUJLTGNPAZANCNFSM42FEWZ4Q .