455{
459
460
461 g = PG_GETARG_GSERIALIZED_P_COPY(0);
462
463
465
466
467
469
470
472
473
474 if ( g_out == NULL )
475 {
476 PG_RETURN_POINTER(g);
477 }
478
479 if ( g_out != g )
480 {
481 pfree(g);
482 }
483
484 PG_RETURN_POINTER(g_out);
485}
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)