Opened 16 years ago

Last modified 16 years ago

#58 closed defect (fixed)

bounding box of circular string is incorrect

Reported by: mleslie Owned by:
Priority: medium Milestone:
Component: postgis Version:
Keywords: Cc:

Description

Execute:

select ST_Box2d('CIRCULARSTRING(220268.439465645 150415.359530563,220227.333322076 150505.561285879,220227.353105332 150406.434743975)'::geometry);

Result:

BOX(220227.34375 150406.421875,220268.453125 150415.375)

Expected:

BOX(220187.375 150406.421875,220288.828125 150506.71875)

Reported at: http://www.nabble.com/bounding-box-incorrect-on-circularstring-td19751567.html

This seems to be a problem in determining the angle of sweep of the arc. Because it's nearly a full circle, it takes the shorter path between the end points, ignoring the midpoint.

Change History (4)

comment:1 by mleslie, 16 years ago

Fix committed to trunk at r3080 and branch 1.3 at r3079.

comment:2 by mcayland, 16 years ago

Mark,

Can this be marked as fixed?

ATB,

Mark.

comment:3 by mleslie, 16 years ago

Please do. I don't seem to have that capability.

comment:4 by robe, 16 years ago

Done

Note: See TracTickets for help on using tickets.