[postgis-tickets] r17655 - bugfix to fix for #4461

nicklas.aven at jordogskog.no nicklas.aven at jordogskog.no
Thu Aug 1 06:28:52 PDT 2019


Author: nicklas
Date: 2019-08-01 06:28:52 -0700 (Thu, 01 Aug 2019)
New Revision: 17655

Modified:
   trunk/liblwgeom/lwout_twkb.c
Log:
bugfix to fix for #4461

Modified: trunk/liblwgeom/lwout_twkb.c
===================================================================
--- trunk/liblwgeom/lwout_twkb.c	2019-08-01 08:20:13 UTC (rev 17654)
+++ trunk/liblwgeom/lwout_twkb.c	2019-08-01 13:28:52 UTC (rev 17655)
@@ -174,7 +174,7 @@
 		/* Skipping the first point is not allowed */
 		/* If the sum(abs()) of all the deltas was zero, */
 		/* then this was a duplicate point, so we can ignore it */
-		if ( diff == 0 &&  max_points_left > minpoints )
+		if ( i > 0 && diff == 0 &&  max_points_left > minpoints )
 		{
 			max_points_left--;
 			continue;



More information about the postgis-tickets mailing list