Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#3756 closed defect (invalid)

GROUP BY groups reversed segments into single bucket

Reported by: komzpa Owned by: pramsey
Priority: medium Milestone: PostGIS 2.4.0
Component: postgis Version: 2.3.x
Keywords: Cc:

Description

I'm making a traffic model of a city.

I have a table with (geom, speed), where geom is two-point line representing edge of a graph, and speed is a floating point value. Edges can be duplicate and can be reversed.

When I create summary, (select geom, avg(speed) from table group by 1), it groups reversed segments into same buckets.

Expected behavior: reversed segments go to different buckets.

Change History (3)

comment:1 by robe, 7 years ago

Your group by would be grouping by bounding box of the line string. Not following what you mean by reverse segments.

Perhaps you can provide a small example.

comment:2 by robe, 7 years ago

Resolution: invalid
Status: newclosed

Not enough information to do anything with. This I suspect is not an issue and just user misunderstanding of how group by works in regard to PostGIS.

comment:3 by robe, 7 years ago

Milestone: PostGIS 2.3.3PostGIS 2.4.0

kompzpa says your commit for #3844 fixed this.

Note: See TracTickets for help on using tickets.