data (#23) - Grouping the results of pgRouting functions into one line (#236) - Message List

Grouping the results of pgRouting functions into one line

A quick question that may be more PostGIS-related, but some of you may have solved this.

I've got pgRouting generating a nice list of directions, including the geometries. Is there an easy way to group these results together so that it's just one long line? Or to group by some other field that I'm already joining (like street name or street type) and get one line per street?

When I try to group by the street name and collect the geometries in one aggregate select, the results are crazy. I think this may be because it destroys the sequence from the routing function, but I'm not sure.

My current solution is a bunch of ugly PHP that loops through the results and I'd love to eliminate that.

Thanks, Jordan