in inner geometry when applied to single geoms.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1396
b70326c6-7e19-0410-871a-
916f4a2858ee
PG_LWGEOM *result;
LWGEOM *lwgeoms[1];
LWGEOM *lwgeom;
+ int SRID;
+ BOX2DFLOAT4 *bbox;
// deserialize into lwgeoms[0]
lwgeom = lwgeom_deserialize(SERIALIZED_FORM(geom));
// single geom, make it a collection
else
{
+ SRID = lwgeom->SRID;
+ bbox = lwgeom->bbox;
+ lwgeom->SRID = -1;
+ lwgeom->bbox = NULL;
lwgeoms[0] = lwgeom;
lwgeom = (LWGEOM *)lwcollection_construct(COLLECTIONTYPE,
- lwgeom->SRID, lwgeom->bbox, 1,
+ SRID, bbox, 1,
lwgeoms);
}