]> granicus.if.org Git - postgis/commitdiff
Fix GBT#122: ST_SnapToGrid gives 13 when fed circular string. Alter the error message...
authorMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Sun, 8 Mar 2009 14:31:39 +0000 (14:31 +0000)
committerMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Sun, 8 Mar 2009 14:31:39 +0000 (14:31 +0000)
git-svn-id: http://svn.osgeo.org/postgis/branches/1.3@3801 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_functions_analytic.c

index a1dfa128c5938b34989263b4ebfe71cf67cb81d7..f7a906b6a37549637d5b0ff213e44d8a15384685 100644 (file)
@@ -770,8 +770,8 @@ lwgeom_grid(LWGEOM *lwgeom, gridspec *grid)
                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;
        }
 }