Opened 5 years ago

Closed 5 years ago

#4494 closed defect (fixed)

Incorrect geometry bbox returned from ST_Simplify

Reported by: Algunenano Owned by: Algunenano
Priority: high Milestone: PostGIS 2.3.11
Component: postgis Version: master
Keywords: Cc:

Description

Same as #4493. The bbox isn't being updated properly here either.

Example:

# WITH geom AS
(
    SELECT ST_Simplify('POLYGON((0 0, 10 0, 10 10, 10.6 10, 10.5 10.5, 10 10, 0 10, 0 0))', 1) as g
)
Select ST_AsText(g) as geometry, postgis_getbbox(g) AS box from geom;
                geometry                |              box               
----------------------------------------+--------------------------------
 POLYGON((0 0,10 0,10.5 10.5,0 10,0 0)) | BOX(0 0,10.6000003814697 10.5)
(1 row)

Change History (7)

comment:2 by Raul Marin, 5 years ago

In 17786:

Fix ST_Simplify output having an outdated bbox

References #4494

comment:3 by Raul Marin, 5 years ago

In 17787:

Fix ST_Simplify output having an outdated bbox

References #4494

comment:4 by Raul Marin, 5 years ago

In 17788:

Fix ST_Simplify output having an outdated bbox

References #4494

comment:5 by Raul Marin, 5 years ago

Resolution: fixed
Status: assignedclosed

In 17789:

Fix ST_Simplify output having an outdated bbox

Closes #4494
Closes https://github.com/postgis/postgis/pull/470

comment:6 by Algunenano, 5 years ago

Resolution: fixed
Status: closedreopened

2.3 and 2.4 don't have lwgeom_refresh_bbox, so the patch breaks the build

comment:7 by Raul Marin, 5 years ago

Resolution: fixed
Status: reopenedclosed

In 17791:

Fix bbox refresh

The function used was introduced in 2.5, so the direct
backport broke the build

Closes #4494

Note: See TracTickets for help on using tickets.