From b839549e93fb3d255c0ca67fe8c350633c41d38b Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Mon, 9 Jan 2012 17:01:43 +0000 Subject: [PATCH] Implement lwcompound_construct_empty git-svn-id: http://svn.osgeo.org/postgis/trunk@8719 b70326c6-7e19-0410-871a-916f4a2858ee --- liblwgeom/lwcompound.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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; +} + -- 2.40.0