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

Definition at line 1946 of file lwgeom_functions_basic.c.

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

1947 {
1948  GSERIALIZED *in, *out;
1949  LWGEOM *lwgeom;
1950 
1951  POSTGIS_DEBUG(2, "LWGEOM_noop called");
1952 
1953  in = (GSERIALIZED *)PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
1954 
1955  lwgeom = lwgeom_from_gserialized(in);
1956 
1957  POSTGIS_DEBUGF(3, "Deserialized: %s", lwgeom_summary(lwgeom, 0));
1958 
1959  out = geometry_serialize(lwgeom);
1960 
1961  lwgeom_free(lwgeom);
1962  PG_FREE_IF_COPY(in, 0);
1963 
1964  PG_RETURN_POINTER(out);
1965 }
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1006
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: