[PostGIS] #5962: Inconsistent results in multipoint clipping
PostGIS
trac at osgeo.org
Wed Aug 13 00:54:34 PDT 2025
#5962: Inconsistent results in multipoint clipping
---------------------+---------------------------
Reporter: bradh | Owner: pramsey
Type: defect | Status: new
Priority: low | Milestone: PostGIS 3.5.4
Component: postgis | Version: 3.4.x
Keywords: |
---------------------+---------------------------
This seems reasonable to me.
{{{
SELECT ST_AsText(ST_ClipByBox2D(ST_GeomFromText('MULTIPOINT((1 1),(3 4),(5
4))'), ST_MakeEnvelope(0, 0, 5, 5 )));
st_astext
-------------------------------
MULTIPOINT((1 1),(3 4),(5 4))
}}}
However:
{{{
SELECT ST_AsText(ST_ClipByBox2D(ST_GeomFromText('MULTIPOINT((1 1),(6 4),(5
4))'), ST_MakeEnvelope(0, 0, 5, 5 )));
st_astext
------------
POINT(1 1)
}}}
seems inconsistent with that. I would have expected `(5 4)` to be included
in both, or potentially excluded in both if there was a representation-
of-5-as-double type issue.
```
However
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5962>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list