]> granicus.if.org Git - postgis/commitdiff
Do not throw exception on empty ST_Dimension(empty) [RT-SIGTA]
authorSandro Santilli <strk@keybit.net>
Tue, 16 Feb 2010 07:54:28 +0000 (07:54 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 16 Feb 2010 07:54:28 +0000 (07:54 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5247 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/lwgeom_ogc.c

index 348a3016a6431eca1fa4bd94ba59088452b3faa7..baeaccc6078248dd326dc7816e2be9dcafa9ec00 100644 (file)
@@ -437,7 +437,7 @@ Datum LWGEOM_dimension(PG_FUNCTION_ARGS)
        if ( dimension == -1 )
        {
                PG_FREE_IF_COPY(geom, 0);
-               elog(ERROR, "Something went wrong in dimension computation");
+               elog(NOTICE, "Could not compute geoemtry dimensions");
                PG_RETURN_NULL();
        }