PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ ST_UnaryUnion()

Datum ST_UnaryUnion ( PG_FUNCTION_ARGS  )

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

775 {
776  GSERIALIZED *geom1;
778  LWGEOM *lwgeom1, *lwresult ;
779  double prec = -1;
780 
781  geom1 = PG_GETARG_GSERIALIZED_P(0);
782  if (PG_NARGS() > 1 && ! PG_ARGISNULL(1))
783  prec = PG_GETARG_FLOAT8(1);
784 
785  lwgeom1 = lwgeom_from_gserialized(geom1) ;
786 
787  lwresult = lwgeom_unaryunion_prec(lwgeom1, prec);
788  result = geometry_serialize(lwresult) ;
789 
790  lwgeom_free(lwgeom1) ;
791  lwgeom_free(lwresult) ;
792 
793  PG_FREE_IF_COPY(geom1, 0);
794 
795  PG_RETURN_POINTER(result);
796 }
char result[OUT_DOUBLE_BUFFER_SIZE]
Definition: cu_print.c:262
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: