PostGIS  3.2.2dev-r@@SVN_REVISION@@

◆ ST_UnaryUnion()

Datum ST_UnaryUnion ( PG_FUNCTION_ARGS  )

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

742 {
743  GSERIALIZED *geom1;
745  LWGEOM *lwgeom1, *lwresult ;
746  double prec = -1;
747 
748  geom1 = PG_GETARG_GSERIALIZED_P(0);
749  if (PG_NARGS() > 1 && ! PG_ARGISNULL(1))
750  prec = PG_GETARG_FLOAT8(1);
751 
752  lwgeom1 = lwgeom_from_gserialized(geom1) ;
753 
754  lwresult = lwgeom_unaryunion_prec(lwgeom1, prec);
755  result = geometry_serialize(lwresult) ;
756 
757  lwgeom_free(lwgeom1) ;
758  lwgeom_free(lwresult) ;
759 
760  PG_FREE_IF_COPY(geom1, 0);
761 
762  PG_RETURN_POINTER(result);
763 }
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: