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

Definition at line 1881 of file lwgeom_functions_basic.c.

References geometry_serialize(), lwgeom_free(), lwgeom_from_gserialized(), and lwgeom_summary().

1882 {
1883  GSERIALIZED *in, *out;
1884  LWGEOM *lwgeom;
1885 
1886  POSTGIS_DEBUG(2, "LWGEOM_noop called");
1887 
1888  in = PG_GETARG_GSERIALIZED_P(0);
1889 
1890  lwgeom = lwgeom_from_gserialized(in);
1891 
1892  POSTGIS_DEBUGF(3, "Deserialized: %s", lwgeom_summary(lwgeom, 0));
1893 
1894  out = geometry_serialize(lwgeom);
1895 
1896  lwgeom_free(lwgeom);
1897  PG_FREE_IF_COPY(in, 0);
1898 
1899  PG_RETURN_POINTER(out);
1900 }
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1050
GSERIALIZED * geometry_serialize(LWGEOM *lwgeom)
char * lwgeom_summary(const LWGEOM *lwgeom, int offset)
Definition: lwgeom_debug.c:145

Here is the call graph for this function: