[postgis-tickets] r16082 - Correctly handle in-place collapse of interior rings, closes #3922

Paul Ramsey pramsey at cleverelephant.ca
Mon Oct 30 13:26:53 PDT 2017


Author: pramsey
Date: 2017-10-30 13:26:52 -0700 (Mon, 30 Oct 2017)
New Revision: 16082

Modified:
   trunk/liblwgeom/lwgeom.c
Log:
Correctly handle in-place collapse of interior rings, closes #3922


Modified: trunk/liblwgeom/lwgeom.c
===================================================================
--- trunk/liblwgeom/lwgeom.c	2017-10-30 19:05:15 UTC (rev 16081)
+++ trunk/liblwgeom/lwgeom.c	2017-10-30 20:26:52 UTC (rev 16082)
@@ -2178,7 +2178,7 @@
 				/* Skip bad rings */
 				if (pa->npoints >= 4)
 				{
-					j++;
+					ply->rings[j++] = pa;
 				}
 				else
 				{



More information about the postgis-tickets mailing list