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

postgis-commits at postgis.refractions.net postgis-commits at postgis.refractions.net
Sun Oct 5 10:33:03 PDT 2008


Author: mcayland
Date: 2008-10-05 10:33:03 -0700 (Sun, 05 Oct 2008)
New Revision: 3067

Modified:
   trunk/liblwgeom/lwgparse.c
Log:
Fix stupid mistake in the liblwgeom parser...


Modified: trunk/liblwgeom/lwgparse.c
===================================================================
--- trunk/liblwgeom/lwgparse.c	2008-10-05 05:36:31 UTC (rev 3066)
+++ trunk/liblwgeom/lwgparse.c	2008-10-05 17:33:03 UTC (rev 3067)
@@ -288,14 +288,14 @@
 	}
 
 	/* If the odd number point check has been enabled, perform it */
-	if (parser_check_flags & PARSER_CHECK_CLOSURE) {
+	if (parser_check_flags & PARSER_CHECK_ODD) {
         	if(isodd != -1 && the_geom.stack->uu.nn.num % 2 != isodd) {
                 	error("geometry must have an odd number of points");
         	}
 	}
 
 	/* If the polygon closure check has been enabled, perform it */
-	if (parser_check_flags & PARSER_CHECK_ODD) {
+	if (parser_check_flags & PARSER_CHECK_CLOSURE) {
 		if ( checkclosed && first_point && last_point) {
 			if ( memcmp(first_point, last_point,
 				sizeof(double)*the_geom.ndims) )



More information about the postgis-commits mailing list