Ticket #58 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

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

Changed 5 years ago by mleslie

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

Changed 5 years ago by mcayland

Mark,

Can this be marked as fixed?

ATB,

Mark.

Changed 4 years ago by mleslie

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

Changed 4 years ago by robe

Done

Note: See TracTickets for help on using tickets.