PostGIS  3.3.9dev-r@@SVN_REVISION@@

◆ ST_UnaryUnion()

Datum ST_UnaryUnion ( PG_FUNCTION_ARGS  )

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

658 {
659  GSERIALIZED *geom1;
661  LWGEOM *lwgeom1, *lwresult ;
662  double prec = -1;
663 
664  geom1 = PG_GETARG_GSERIALIZED_P(0);
665  if (PG_NARGS() > 1 && ! PG_ARGISNULL(1))
666  prec = PG_GETARG_FLOAT8(1);
667 
668  lwgeom1 = lwgeom_from_gserialized(geom1) ;
669 
670  lwresult = lwgeom_unaryunion_prec(lwgeom1, prec);
671  result = geometry_serialize(lwresult) ;
672 
673  lwgeom_free(lwgeom1) ;
674  lwgeom_free(lwresult) ;
675 
676  PG_FREE_IF_COPY(geom1, 0);
677 
678  PG_RETURN_POINTER(result);
679 }
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:1155
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: