[postgis-users] reverseWindingOrder and isClockwise in PostGIS

Picavet Vincent Vincent.Picavet at mediapost.fr
Wed Sep 30 10:45:54 PDT 2009


Hello,

> today i am searching for a postgis based solution which gives 
> me an answer on the question
> 
> isClockwise(POLYGON)
> 
> and if this is true
> 
> reverseWindingOrder(POLYGON)
> 

PostGIS provides the following function :

ST_ForceRHR(geometry)
    Force polygons of the collection to obey Right-Hand-Rule.

Does that suit your needs or you really want to test if your polygon is
clockwise ?

Regards,
Vincent



More information about the postgis-users mailing list