3024 GSERIALIZED *g_in = PG_GETARG_GSERIALIZED_P_COPY(0);
3027 LWGEOM *lwgeom_in = NULL;
3028 double tolerance = 0.0;
3033 PG_RETURN_POINTER(g_in);
3035 if (PG_NARGS() > 1 && !PG_ARGISNULL(1))
3036 tolerance = PG_GETARG_FLOAT8(1);
3043 PG_RETURN_POINTER(g_in);
3046 g_out = geometry_serialize(lwgeom_in);
3049 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.