]> granicus.if.org Git - postgis/commitdiff
- updated the translate function in postgis_fn.c to translate the bounding box as...
authorChris Hodgson <chodgson@refractions.net>
Tue, 28 May 2002 17:54:37 +0000 (17:54 +0000)
committerChris Hodgson <chodgson@refractions.net>
Tue, 28 May 2002 17:54:37 +0000 (17:54 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@165 b70326c6-7e19-0410-871a-916f4a2858ee

postgis_fn.c

index 566ead08759760fcaada1ed528982356147452c4..6d45f0a6bd388756618860529a6854cd39fedb69 100644 (file)
@@ -883,6 +883,14 @@ Datum translate(PG_FUNCTION_ARGS)
 
                }
        }
+       //translate the bounding box as well
+       geom1->bvol.LLB.x += x_off;
+       geom1->bvol.LLB.y += y_off;
+       geom1->bvol.LLB.z += z_off;
+       geom1->bvol.URT.x += x_off;
+       geom1->bvol.URT.y += y_off;
+       geom1->bvol.URT.z += z_off;
+
        PG_RETURN_POINTER(geom1);
 }