[postgis-commits] svn - r3802 - trunk/postgis

postgis-commits at postgis.refractions.net postgis-commits at postgis.refractions.net
Sun Mar 8 07:36:05 PDT 2009


Author: mcayland
Date: 2009-03-08 07:36:05 -0700 (Sun, 08 Mar 2009)
New Revision: 3802

Modified:
   trunk/postgis/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: trunk/postgis/lwgeom_functions_analytic.c
===================================================================
--- trunk/postgis/lwgeom_functions_analytic.c	2009-03-08 14:31:39 UTC (rev 3801)
+++ trunk/postgis/lwgeom_functions_analytic.c	2009-03-08 14:36:05 UTC (rev 3802)
@@ -754,8 +754,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