[postgis-devel] ForceRHR doesn't?

Michael Fuhr mike at fuhr.org
Sat Mar 11 20:52:28 PST 2006


On Sat, Mar 11, 2006 at 08:50:16PM -0700, Michael Fuhr wrote:
> I've attached a patch that makes ForceRHR() work the way I was
> expecting: return the points of the exterior and interior rings in
> counter-clockwise order.  If I've misunderstood what ForceRHR() is
> supposed to do then somebody please correct me.  Thanks.

After a bit more reading it appears that I have indeed misunderstood
how ForceRHR() should work with interior rings.  They're supposed
to be ordered in the opposite direction as the exterior ring,
correct?  The right-hand rule applied to polygons means the exterior
ring is counter-clockwise and the interior rings are clockwise --
is that right?  Or am I still confused?

-- 
Michael Fuhr



More information about the postgis-devel mailing list