From: Sandro Santilli Date: Mon, 9 Jan 2012 17:01:43 +0000 (+0000) Subject: Implement lwcompound_construct_empty X-Git-Tag: 2.0.0alpha1~157 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b839549e93fb3d255c0ca67fe8c350633c41d38b;p=postgis Implement lwcompound_construct_empty git-svn-id: http://svn.osgeo.org/postgis/trunk@8719 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/lwcompound.c b/liblwgeom/lwcompound.c index 64ce3493d..d4ec24149 100644 --- a/liblwgeom/lwcompound.c +++ b/liblwgeom/lwcompound.c @@ -98,3 +98,11 @@ int lwcompound_add_lwgeom(LWCOMPOUND *comp, LWGEOM *geom) col = lwcollection_add_lwgeom(col, geom); return LW_SUCCESS; } + +LWCOMPOUND * +lwcompound_construct_empty(int srid, char hasz, char hasm) +{ + LWCOMPOUND *ret = (LWCOMPOUND*)lwcollection_construct_empty(COMPOUNDTYPE, srid, hasz, hasm); + return ret; +} +