From: Bborie Park Date: Fri, 13 Jul 2012 23:28:44 +0000 (+0000) Subject: Additional comments regarding use of lwgeom_as_multi() and the X-Git-Tag: 2.1.0beta2~804 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b8a287cf7bc8fe8704d6ae1537bb11cec1f652ae;p=postgis 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 --- 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);