[postgis-devel] r15336 - #3589, Orientation checking and forcing fuctions

Sandro Santilli strk at kbt.io
Fri Mar 17 06:42:30 PDT 2017


On Fri, Mar 17, 2017 at 02:41:20PM +0100, Sandro Santilli wrote:
> On Fri, Mar 17, 2017 at 09:31:33AM -0400, Daniel Baston wrote:
> 
> > One way to think of it is that
> > the function is telling you whether all of the polygons in the input are
> > oriented CCW.  If you have zero polygons, then all of the polygons are
> > oriented CCW.
> 
> Ok, this is convincing.
> 
> > Do you want to explain a bit about why you don't like it?
> 
> I didn't like the wording, if you can express it as you did above,
> it'll be fine for me. So basically:
> 
> - Returns true for all non-polygonal
> + Returns true if all polygonal components are oriented CCW
> 
> Something along those lines...

Oh, and please add a WARNING/NOTE section specifying that a CW
closed linestring would still return true from IsPolygonCCW
function, as that'd be also a puzzling behavior (although explained
by your definition above)

--strk;



More information about the postgis-devel mailing list