PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ LWGEOM_noop()

Datum LWGEOM_noop ( PG_FUNCTION_ARGS  )

Definition at line 1914 of file lwgeom_functions_basic.c.

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

Referenced by LWGEOM_force_clockwise_poly().

1915 {
1916  GSERIALIZED *in, *out;
1917  LWGEOM *lwgeom;
1918 
1919  POSTGIS_DEBUG(2, "LWGEOM_noop called");
1920 
1921  in = PG_GETARG_GSERIALIZED_P(0);
1922 
1923  lwgeom = lwgeom_from_gserialized(in);
1924 
1925  POSTGIS_DEBUGF(3, "Deserialized: %s", lwgeom_summary(lwgeom, 0));
1926 
1927  out = geometry_serialize(lwgeom);
1928 
1929  lwgeom_free(lwgeom);
1930  PG_FREE_IF_COPY(in, 0);
1931 
1932  PG_RETURN_POINTER(out);
1933 }
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1099
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:
Here is the caller graph for this function: