PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ LWGEOM_noop()

Datum LWGEOM_noop ( PG_FUNCTION_ARGS  )

Definition at line 1921 of file lwgeom_functions_basic.c.

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

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

Here is the call graph for this function: