83{
86 LWGEOM *lwin = NULL, *lwout = NULL;
87 double measure = PG_GETARG_FLOAT8(1);
88 double offset = PG_GETARG_FLOAT8(2);
89
93 PG_FREE_IF_COPY(gin, 0);
94
95 if ( ! lwout )
96 PG_RETURN_NULL();
97
98 gout = geometry_serialize(lwout);
100
101 PG_RETURN_POINTER(gout);
102}
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
LWGEOM * lwgeom_locate_along(const LWGEOM *lwin, double m, double offset)
Determine the location(s) along a measured line where m occurs and return as a multipoint.