Opened 13 years ago

Closed 13 years ago

#578 closed defect (fixed)

PostGIS Box2D (and && operator) gives wrong result for ST_CircularString type

Reported by: vince Owned by: pramsey
Priority: medium Milestone: PostGIS 2.0.0
Component: postgis Version: master
Keywords: Box2D ST_Curve boxes Cc:

Description

Box2D is supposed to support ST_Curve types, but obviously, albeit calling Box2D with an ST_CircularString causes no error, the returned box is wrong. See three cases in the SQL sample file attached (circle, half-circle, "half-infinity" glyph).

Consequently, the && operator is also buggy, which prevent spatial queries to work reliably.

Seems same bugs exist in trunk (tested by Olivier Courtin, OsLandia).

Attachments (1)

Box2D.sql (1.2 KB ) - added by vince 13 years ago.
Sample SQL file showing aberrant Box2D results on ST_CircularStrings

Download all attachments as: .zip

Change History (4)

by vince, 13 years ago

Attachment: Box2D.sql added

Sample SQL file showing aberrant Box2D results on ST_CircularStrings

comment:1 by strk, 13 years ago

Keywords: boxes added

comment:2 by robe, 13 years ago

Milestone: PostGIS 1.5.3PostGIS 2.0.0

comment:3 by pramsey, 13 years ago

Resolution: fixed
Status: newclosed

Fixed in trunk at r7452

Note: See TracTickets for help on using tickets.