Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with line as (select ST_GeomFromText('LINESTRINGM(0 0 10, 2 4 100, 5 5 10)') as geom)
- select avg(ST_M(ST_PointN(geom, num))) as m
- from line,
- (select generate_series(1, (select ST_NumPoints(geom) from line)) as num)
- as series;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement