PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ ST_UnaryUnion()

Datum ST_UnaryUnion ( PG_FUNCTION_ARGS  )

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

614{
615 GSERIALIZED *geom1;
616 GSERIALIZED *result;
617 LWGEOM *lwgeom1, *lwresult ;
618
619 geom1 = PG_GETARG_GSERIALIZED_P(0);
620
621 lwgeom1 = lwgeom_from_gserialized(geom1) ;
622
623 lwresult = lwgeom_unaryunion(lwgeom1);
624 result = geometry_serialize(lwresult) ;
625
626 lwgeom_free(lwgeom1) ;
627 lwgeom_free(lwresult) ;
628
629 PG_FREE_IF_COPY(geom1, 0);
630
631 PG_RETURN_POINTER(result);
632}
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
LWGEOM * lwgeom_unaryunion(const LWGEOM *geom1)
void lwgeom_free(LWGEOM *geom)
Definition lwgeom.c:1138
GSERIALIZED * geometry_serialize(LWGEOM *lwgeom)

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

Here is the call graph for this function: