2795 GSERIALIZED *g_in = PG_GETARG_GSERIALIZED_P_COPY(0);
2798 LWGEOM *lwgeom_in = NULL;
2799 double tolerance = 0.0;
2804 PG_RETURN_POINTER(g_in);
2806 if (PG_NARGS() > 1 && !PG_ARGISNULL(1))
2807 tolerance = PG_GETARG_FLOAT8(1);
2814 PG_RETURN_POINTER(g_in);
2817 g_out = geometry_serialize(lwgeom_in);
2820 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.