We’re rewarding the question askers & reputations are being recalculated! Read more.

A function that forms a line from a set of points (or other geometries).

In PostGIS, ST_MakeLine comes in 3 forms: a spatial aggregate that takes rows of point, multipoint, or line geometries and returns a line string, a function that takes an array of point, multipoint, or line, and a regular function that takes two point, multipoint, or line geometries. You might want to use a subselect to order points before feeding them to the aggregate version of this function.

history | excerpt history