PostGIS  2.2.7dev-r@@SVN_REVISION@@
Datum geography_out ( PG_FUNCTION_ARGS  )

Definition at line 176 of file geography_inout.c.

References lwgeom_free(), lwgeom_from_gserialized(), lwgeom_to_hexwkb(), and WKB_EXTENDED.

177 {
178  LWGEOM *lwgeom = NULL;
179  GSERIALIZED *g = NULL;
180  char *hexwkb;
181 
182  g = PG_GETARG_GSERIALIZED_P(0);
183  lwgeom = lwgeom_from_gserialized(g);
184  hexwkb = lwgeom_to_hexwkb(lwgeom, WKB_EXTENDED, 0);
185  lwgeom_free(lwgeom);
186 
187  PG_RETURN_CSTRING(hexwkb);
188 }
char * lwgeom_to_hexwkb(const LWGEOM *geom, uint8_t variant, size_t *size_out)
Definition: lwout_wkb.c:834
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1050
#define WKB_EXTENDED
Definition: liblwgeom.h:1932

Here is the call graph for this function: