[postgis-devel] RFC - Orientation checking and forcing functions

Daniel Baston dbaston at gmail.com
Wed Mar 15 13:49:32 PDT 2017


I'd like to wrap this up, if possible.

Are the proposed function additions acceptable if I rename them to the
following?

ST_ForcePolygonCW
ST_ForcePolygonCCW
ST_IsPolygonCW
ST_IsPolygonCCW

Dan

On Thu, Feb 9, 2017 at 3:35 AM, Sandro Santilli <strk at kbt.io> wrote:

> On Wed, Feb 08, 2017 at 03:35:05PM -0500, Daniel Baston wrote:
> > I'll try to see if I can come up with a less ambiguous name, without
> > resorting to
> > ST_ForcePolygonsClockwiseExteriorRingAndCounterClockwiseInteriorRings,
> but
> > I'll also note that the proposed terminology has been used by PostGIS
> > internally since 2010:
> >
> > https://github.com/postgis/postgis/commit/2d07d7eb59d2bb8db9d4773cd84619
> cd696bc471
>
> Interesting, that one turned LWGEOM_forceRHR_poly
> into LWGEOM_force_clockwise_poly. In 2010 I was
> distracted, or I'd have suggested to just add
> documentation in the header file :)
>
> --strk;
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/postgis-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20170315/656e46ba/attachment.html>


More information about the postgis-devel mailing list