[postgis-devel] closest_segment_2d corner case (32bit failure)

Sandro Santilli strk at kbt.io
Wed Sep 29 13:57:48 PDT 2021


On Wed, Sep 29, 2021 at 08:53:12AM -0700, Martin Davis wrote:
> My vote is to change the test so that it executes correctly on all
> platforms.  Probably by displacing the point upwards slightly so that the
> second segment is clearly closer.
> 
> Users of this function will have to accept that it has a small amount of
> "jitter" on different platforms, and not rely on that behaviour.

Makes sense. I've already adapted my usage of it to NOT expect the
strict behaviour (getFaceContainingPoint).

Will update the test too.

--strk;


More information about the postgis-devel mailing list