Opened 3 years ago

Closed 3 years ago

Last modified 2 years ago

#4790 closed defect (fixed)

3D measuring functions doesn't recognize identical vertex points correctly

Reported by: nicklas Owned by: nicklas
Priority: medium Milestone: PostGIS 3.0.2
Component: postgis Version: 2.5.x -- EOL
Keywords: Cc:

Description

As per email from Alexandre Neto https://lists.osgeo.org/pipermail/postgis-users/2020-November/044563.html

2 geometries sharing one vertex point gives false as result in intersects test

Change History (7)

comment:1 by nicklas, 3 years ago

The problem is that the shared vertex is not identified but calculated which gives floating point error.

comment:2 by nicklas, 3 years ago

Should be fixed with https://gitlab.com/postgis/postgis/-/merge_requests/16

please someone take a look and merge

comment:3 by Raúl Marín <git@…>, 3 years ago

In dfeaaac/git:

Fix ST_3dintersects calculations with identical vertices

Short circuit when geometries share points to avoid unnecessary
calculations that can lead to floating point errors

Closes https://gitlab.com/postgis/postgis/-/merge_requests/16
References #4790 (master)

comment:4 by Raúl Marín <git@…>, 3 years ago

In 5566fb7/git:

Fix ST_3dintersects calculations with identical vertices

Short circuit when geometries share points to avoid unnecessary
calculations that can lead to floating point errors

References #4790 (3.0)

comment:5 by Algunenano, 3 years ago

Milestone: PostGIS 3.1.0PostGIS 2.5.6
Version: 3.0.x2.5.x

Fixed applied in 3.1 (master) and 3.0. Not backported to 2.5 or previous releases.

comment:6 by pramsey, 3 years ago

Resolution: fixed
Status: assignedclosed

I've looked at the 2.5 port and I'm closing out as it's too unfun.

comment:7 by robe, 2 years ago

Milestone: PostGIS 2.5.6PostGIS 3.0.2
Note: See TracTickets for help on using tickets.