PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ boundary()

Datum boundary ( PG_FUNCTION_ARGS  )

Definition at line 3412 of file lwgeom_functions_basic.c.

3413{
3414 GSERIALIZED *geom1;
3416 LWGEOM *lwgeom, *lwresult;
3417
3418 geom1 = PG_GETARG_GSERIALIZED_P(0);
3419
3420 /* Empty.Boundary() == Empty, but of other dimension, so can't shortcut */
3421
3422 lwgeom = lwgeom_from_gserialized(geom1);
3423 lwresult = lwgeom_boundary(lwgeom);
3424 if (!lwresult)
3425 {
3426 lwgeom_free(lwgeom);
3427 PG_RETURN_NULL();
3428 }
3429
3430 result = geometry_serialize(lwresult);
3431
3432 lwgeom_free(lwgeom);
3433 lwgeom_free(lwresult);
3434
3435 PG_RETURN_POINTER(result);
3436}
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.
void lwgeom_free(LWGEOM *geom)
Definition lwgeom.c:1246
LWGEOM * lwgeom_boundary(LWGEOM *lwgeom)
Definition lwgeom.c:2714

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

Referenced by ST_LargestEmptyCircle().

Here is the call graph for this function:
Here is the caller graph for this function: