PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ ST_UnaryUnion()

Datum ST_UnaryUnion ( PG_FUNCTION_ARGS  )

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

734 {
735  GSERIALIZED *geom1;
737  LWGEOM *lwgeom1, *lwresult ;
738  double prec = -1;
739 
740  geom1 = PG_GETARG_GSERIALIZED_P(0);
741  if (PG_NARGS() > 1 && ! PG_ARGISNULL(1))
742  prec = PG_GETARG_FLOAT8(1);
743 
744  lwgeom1 = lwgeom_from_gserialized(geom1) ;
745 
746  lwresult = lwgeom_unaryunion_prec(lwgeom1, prec);
747  result = geometry_serialize(lwresult) ;
748 
749  lwgeom_free(lwgeom1) ;
750  lwgeom_free(lwresult) ;
751 
752  PG_FREE_IF_COPY(geom1, 0);
753 
754  PG_RETURN_POINTER(result);
755 }
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:239
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1138
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: