2905 GSERIALIZED *g_in = PG_GETARG_GSERIALIZED_P_COPY(0);
2908 LWGEOM *lwgeom_in = NULL;
2909 double tolerance = 0.0;
2914 PG_RETURN_POINTER(g_in);
2916 if (PG_NARGS() > 1 && !PG_ARGISNULL(1))
2917 tolerance = PG_GETARG_FLOAT8(1);
2924 PG_RETURN_POINTER(g_in);
2927 g_out = geometry_serialize(lwgeom_in);
2930 PG_RETURN_POINTER(g_out);
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
uint32_t gserialized_get_type(const GSERIALIZED *g)
Extract the geometry type from the serialized form (it hides in the anonymous data area,...
int lwgeom_remove_repeated_points_in_place(LWGEOM *in, double tolerance)
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.