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

◆ boundary()

Datum boundary ( PG_FUNCTION_ARGS  )

Definition at line 3385 of file lwgeom_functions_basic.c.

3386{
3387 GSERIALIZED *geom1;
3389 LWGEOM *lwgeom, *lwresult;
3390
3391 geom1 = PG_GETARG_GSERIALIZED_P(0);
3392
3393 /* Empty.Boundary() == Empty, but of other dimension, so can't shortcut */
3394
3395 lwgeom = lwgeom_from_gserialized(geom1);
3396 lwresult = lwgeom_boundary(lwgeom);
3397 if (!lwresult)
3398 {
3399 lwgeom_free(lwgeom);
3400 PG_RETURN_NULL();
3401 }
3402
3403 result = geometry_serialize(lwresult);
3404
3405 lwgeom_free(lwgeom);
3406 lwgeom_free(lwresult);
3407
3408 PG_RETURN_POINTER(result);
3409}
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:1218
LWGEOM * lwgeom_boundary(LWGEOM *lwgeom)
Definition lwgeom.c:2686

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: