1300 gser_input = PG_GETARG_GSERIALIZED_P(0);
1301 npoints = PG_GETARG_INT32(1);
1306 if (PG_NARGS() > 2 && ! PG_ARGISNULL(2))
1308 seed = PG_GETARG_INT32(2);
1311 lwpgerror(
"ST_GeneratePoints: seed must be greater than zero");
1320 PG_FREE_IF_COPY(gser_input, 0);
1327 gser_result = geometry_serialize(lwgeom_result);
1329 PG_RETURN_POINTER(gser_result);
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
LWMPOINT * lwgeom_to_points(const LWGEOM *lwgeom, uint32_t npoints, int32_t seed)