Definition at line 405 of file lwgeom_inout.c.
406{
410
411
412 if ( (PG_NARGS()>1) && (!PG_ARGISNULL(1)) )
413 {
414 text *
type = PG_GETARG_TEXT_P(1);
415
416 if ( ! strncmp(VARDATA(type), "xdr", 3) ||
417 ! strncmp(VARDATA(type), "XDR", 3) )
418 {
420 }
421 else
422 {
424 }
425 }
426
427
430}
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
lwvarlena_t * lwgeom_to_wkb_varlena(const LWGEOM *geom, uint8_t variant)
References lwgeom_from_gserialized(), lwgeom_to_wkb_varlena(), variant, WKB_EXTENDED, WKB_NDR, and WKB_XDR.
Referenced by LWGEOM_send(), and LWGEOM_to_bytea().