SQLite Forum

Recursive CTE
Login
The function mentioned reverses the orientation if it had CW orientation. You can either use it as is and do a before-to-after comparison, or examine its source to see how it determined the orientation and extend (or refactor) the extension to make that detection usable on its own.