]> granicus.if.org Git - postgis/commitdiff
Added SRID match check in MakeBox3D, fixed small typo in error message
authorSandro Santilli <strk@keybit.net>
Fri, 28 Jul 2006 13:06:05 +0000 (13:06 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 28 Jul 2006 13:06:05 +0000 (13:06 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2460 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_box3d.c

index 09b76ee726e4df62a20537ce98d287eecb33d18a..0e21d926f6853e1791a78dd0d671007c3b3056f7 100644 (file)
@@ -354,10 +354,12 @@ Datum BOX3D_construct(PG_FUNCTION_ARGS)
        if ( TYPE_GETTYPE(minpoint->type) != POINTTYPE ||
                TYPE_GETTYPE(maxpoint->type) != POINTTYPE )
        {
-               elog(ERROR, "BOX2DFLOAT4_construct: args must be points");
+               elog(ERROR, "BOX3D_construct: args must be points");
                PG_RETURN_NULL();
        }
 
+       errorIfSRIDMismatch(minpoint->SRID, maxpoint->SRID);
+
        getPoint3dz_p(((LWPOINT *)minpoint)->point, 0, &minp);
        getPoint3dz_p(((LWPOINT *)maxpoint)->point, 0, &maxp);