PostGIS  2.5.0dev-r@@SVN_REVISION@@
Datum LWGEOM_summary ( PG_FUNCTION_ARGS  )

Definition at line 131 of file lwgeom_functions_basic.c.

References dumpnode::geom, lwgeom_free(), lwgeom_from_gserialized(), and lwgeom_summary().

132 {
133  GSERIALIZED *geom = PG_GETARG_GSERIALIZED_P(0);
134  char *result;
135  text *mytext;
136  LWGEOM *lwgeom;
137 
138  lwgeom = lwgeom_from_gserialized(geom);
139  result = lwgeom_summary(lwgeom, 0);
140  lwgeom_free(lwgeom);
141 
142  /* create a text obj to return */
143  mytext = cstring2text(result);
144  pfree(result);
145 
146  PG_FREE_IF_COPY(geom,0);
147  PG_RETURN_TEXT_P(mytext);
148 }
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1137
LWGEOM * geom
char * lwgeom_summary(const LWGEOM *lwgeom, int offset)
Definition: lwgeom_debug.c:158

Here is the call graph for this function: