464{
468
469
470 g = PG_GETARG_GSERIALIZED_P_COPY(0);
471
472
474
475
476
478
479
481
482
483 if ( g_out == NULL )
484 {
485 PG_RETURN_POINTER(g);
486 }
487
488 if ( g_out != g )
489 {
490 pfree(g);
491 }
492
493 PG_RETURN_POINTER(g_out);
494}
GSERIALIZED * gserialized_expand(GSERIALIZED *g, double distance)
Return a GSERIALIZED with an expanded bounding box.
static double distance(double x1, double y1, double x2, double y2)