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

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

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

564 {
565  GSERIALIZED *geom1;
566  GSERIALIZED *result;
567  LWGEOM *lwgeom1, *lwresult ;
568 
569  geom1 = PG_GETARG_GSERIALIZED_P(0);
570 
571 
572  lwgeom1 = lwgeom_from_gserialized(geom1) ;
573 
574  lwresult = lwgeom_unaryunion(lwgeom1);
575  result = geometry_serialize(lwresult) ;
576 
577  lwgeom_free(lwgeom1) ;
578  lwgeom_free(lwresult) ;
579 
580  PG_FREE_IF_COPY(geom1, 0);
581 
582  PG_RETURN_POINTER(result);
583 }
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1137
GSERIALIZED * geometry_serialize(LWGEOM *lwgeom)
LWGEOM * lwgeom_unaryunion(const LWGEOM *geom1)

Here is the call graph for this function: