[postgis-commits] svn - r3244 - branches/1.3/lwgeom

postgis-commits at postgis.refractions.net postgis-commits at postgis.refractions.net
Tue Nov 4 06:11:36 PST 2008


Author: mcayland
Date: 2008-11-04 06:11:36 -0800 (Tue, 04 Nov 2008)
New Revision: 3244

Modified:
   branches/1.3/lwgeom/liblwgeom.c
Log:
Fix lwgeom_typename() not returning a valid string for any of the newer geometry types.


Modified: branches/1.3/lwgeom/liblwgeom.c
===================================================================
--- branches/1.3/lwgeom/liblwgeom.c	2008-11-04 14:09:53 UTC (rev 3243)
+++ branches/1.3/lwgeom/liblwgeom.c	2008-11-04 14:11:36 UTC (rev 3244)
@@ -121,7 +121,7 @@
 lwgeom_typename(int type)
 {
 	// something went wrong somewhere
-	if ( type < 0 || type > 12 ) {
+	if ( type < 0 || type > 15 ) {
 		// assert(0);
 		return "Invalid type";
 	}



More information about the postgis-commits mailing list