[postgis-commits] svn - r2996 - trunk/liblwgeom

postgis-commits at postgis.refractions.net postgis-commits at postgis.refractions.net
Tue Sep 23 12:53:17 PDT 2008


Author: mcayland
Date: 2008-09-23 12:53:12 -0700 (Tue, 23 Sep 2008)
New Revision: 2996

Modified:
   trunk/liblwgeom/lwgunparse.c
Log:
Revert commit 2990: the real bug was that the LWDEBUG statement was incorrect rather than the code - the additional read_int() was causing an off-by-one error when outputting WKB causing several regression tests to fail.


Modified: trunk/liblwgeom/lwgunparse.c
===================================================================
--- trunk/liblwgeom/lwgunparse.c	2008-09-23 19:44:57 UTC (rev 2995)
+++ trunk/liblwgeom/lwgunparse.c	2008-09-23 19:53:12 UTC (rev 2996)
@@ -743,8 +743,7 @@
 uchar *
 output_wkb_polygon_collection(uchar* geom)
 {
-	int cnt = read_int(&geom);
-	LWDEBUGF(2, "output_wkb_polygon_collection: %d iterations loop", cnt);
+	LWDEBUG(2, "output_wkb_polygon_collection");
 
 	return output_wkb_polygon_ring_collection(geom,output_wkb_point); 
 }



More information about the postgis-commits mailing list