From b8a287cf7bc8fe8704d6ae1537bb11cec1f652ae Mon Sep 17 00:00:00 2001 From: Bborie Park Date: Fri, 13 Jul 2012 23:28:44 +0000 Subject: [PATCH] Additional comments regarding use of lwgeom_as_multi() and the lwgeom_clone_deep() git-svn-id: http://svn.osgeo.org/postgis/trunk@10056 b70326c6-7e19-0410-871a-916f4a2858ee --- raster/rt_core/rt_api.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/raster/rt_core/rt_api.c b/raster/rt_core/rt_api.c index 5fbe39702..9c645605e 100644 --- a/raster/rt_core/rt_api.c +++ b/raster/rt_core/rt_api.c @@ -12090,6 +12090,8 @@ LWMPOLY* rt_raster_surface(rt_raster raster, int nband) { /* lwgeom_as_multi() only does a shallow clone internally so input and output geometries may share memory + hence the deep clone of the output geometry for returning + is the only way to guarentee the memory isn't shared */ mpoly = lwgeom_as_multi(tmp); tmp2 = lwgeom_clone_deep(mpoly); -- 2.40.0