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

postgis-commits at postgis.refractions.net postgis-commits at postgis.refractions.net
Tue Nov 4 06:09:53 PST 2008


Author: mcayland
Date: 2008-11-04 06:09:53 -0800 (Tue, 04 Nov 2008)
New Revision: 3243

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


Modified: trunk/liblwgeom/lwutil.c
===================================================================
--- trunk/liblwgeom/lwutil.c	2008-11-04 13:58:55 UTC (rev 3242)
+++ trunk/liblwgeom/lwutil.c	2008-11-04 14:09:53 UTC (rev 3243)
@@ -210,7 +210,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