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

Definition at line 1918 of file lwgeom_functions_basic.c.

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

1919 {
1920  GSERIALIZED *in, *out;
1921  LWGEOM *lwgeom;
1922 
1923  POSTGIS_DEBUG(2, "LWGEOM_noop called");
1924 
1925  in = PG_GETARG_GSERIALIZED_P(0);
1926 
1927  lwgeom = lwgeom_from_gserialized(in);
1928 
1929  POSTGIS_DEBUGF(3, "Deserialized: %s", lwgeom_summary(lwgeom, 0));
1930 
1931  out = geometry_serialize(lwgeom);
1932 
1933  lwgeom_free(lwgeom);
1934  PG_FREE_IF_COPY(in, 0);
1935 
1936  PG_RETURN_POINTER(out);
1937 }
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1137
GSERIALIZED * geometry_serialize(LWGEOM *lwgeom)
char * lwgeom_summary(const LWGEOM *lwgeom, int offset)
Definition: lwgeom_debug.c:158

Here is the call graph for this function: