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

postgis-commits at postgis.refractions.net postgis-commits at postgis.refractions.net
Sun Mar 8 07:31:40 PDT 2009


Author: mcayland
Date: 2009-03-08 07:31:39 -0700 (Sun, 08 Mar 2009)
New Revision: 3801

Modified:
   branches/1.3/lwgeom/lwgeom_functions_analytic.c
Log:
Fix GBT#122: ST_SnapToGrid gives 13 when fed circular string. Alter the error message so that it correctly displays the type rather than just it's internal number.


Modified: branches/1.3/lwgeom/lwgeom_functions_analytic.c
===================================================================
--- branches/1.3/lwgeom/lwgeom_functions_analytic.c	2009-03-06 16:06:01 UTC (rev 3800)
+++ branches/1.3/lwgeom/lwgeom_functions_analytic.c	2009-03-08 14:31:39 UTC (rev 3801)
@@ -770,8 +770,8 @@
 		case COLLECTIONTYPE:
 			return (LWGEOM *)lwcollection_grid((LWCOLLECTION *)lwgeom, grid);
 		default:
-			elog(ERROR, "lwgeom_grid: Unknown geometry type: %d",
-				TYPE_GETTYPE(lwgeom->type));
+			elog(ERROR, "lwgeom_grid: Unsupported geometry type: %s",
+				lwgeom_typename(TYPE_GETTYPE(lwgeom->type)));
 			return NULL;
 	}
 }



More information about the postgis-commits mailing list