It is as trivial to sample regularly along a line using st_line_sample()
, as it is to calculate the middle point of a line using st_point_on_surface()
. However, what I would like to do is to generate a single new point based on a given distance along a line from the first vertex. For example, given a line of length 200 metres of any geometry, return the XY coordinates along the line that is 55 metres from the start.
My question sounds similar to this, although it refers to calculating shortest paths (i.e., travelling salesman), which is different to what I am asking. It is more similar to this question, but the language is javascript and is as yet unanswered.