PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ ST_UnaryUnion()

Datum ST_UnaryUnion ( PG_FUNCTION_ARGS  )

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

713 {
714  GSERIALIZED *geom1;
716  LWGEOM *lwgeom1, *lwresult ;
717  double prec = -1;
718 
719  geom1 = PG_GETARG_GSERIALIZED_P(0);
720  if (PG_NARGS() > 1 && ! PG_ARGISNULL(1))
721  prec = PG_GETARG_FLOAT8(1);
722 
723  lwgeom1 = lwgeom_from_gserialized(geom1) ;
724 
725  lwresult = lwgeom_unaryunion_prec(lwgeom1, prec);
726  result = geometry_serialize(lwresult) ;
727 
728  lwgeom_free(lwgeom1) ;
729  lwgeom_free(lwresult) ;
730 
731  PG_FREE_IF_COPY(geom1, 0);
732 
733  PG_RETURN_POINTER(result);
734 }
char result[OUT_DOUBLE_BUFFER_SIZE]
Definition: cu_print.c:267
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
Definition: gserialized.c:268
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1218
LWGEOM * lwgeom_unaryunion_prec(const LWGEOM *geom1, double gridSize)

References lwgeom_free(), lwgeom_from_gserialized(), lwgeom_unaryunion_prec(), and result.

Here is the call graph for this function: