PostGIS  2.2.7dev-r@@SVN_REVISION@@
Datum ST_UnaryUnion ( PG_FUNCTION_ARGS  )

Definition at line 737 of file postgis/lwgeom_geos.c.

References geometry_serialize(), lwgeom_free(), lwgeom_from_gserialized(), and lwgeom_unaryunion().

738 {
739  GSERIALIZED *geom1;
740  GSERIALIZED *result;
741  LWGEOM *lwgeom1, *lwresult ;
742 
743  geom1 = PG_GETARG_GSERIALIZED_P(0);
744 
745 
746  lwgeom1 = lwgeom_from_gserialized(geom1) ;
747 
748  lwresult = lwgeom_unaryunion(lwgeom1);
749  result = geometry_serialize(lwresult) ;
750 
751  lwgeom_free(lwgeom1) ;
752  lwgeom_free(lwresult) ;
753 
754  PG_FREE_IF_COPY(geom1, 0);
755 
756  PG_RETURN_POINTER(result);
757 }
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1050
GSERIALIZED * geometry_serialize(LWGEOM *lwgeom)
LWGEOM * lwgeom_unaryunion(const LWGEOM *geom1)

Here is the call graph for this function: