[postgis-devel] [PostGIS] #1160: operator = returns wrong results checking two POINTS
PostGIS
trac at osgeo.org
Tue Aug 16 05:27:07 PDT 2011
#1160: operator = returns wrong results checking two POINTS
-------------------------+--------------------------------------------------
Reporter: gabrimonfa | Owner: pramsey
Type: defect | Status: closed
Priority: medium | Milestone: PostGIS 1.5.4
Component: postgis | Version: 1.5.X
Resolution: wontfix | Keywords:
-------------------------+--------------------------------------------------
Comment(by gabrimonfa):
robe,
it's ok for me to close the bug.
I would suggest. however, to add a word of caution to the doc of current
stable version to point out that float4 is used for bounding boxes.
{{{
SELECT
ST_AsText('0101000000EC51B85E200D3A4114AE47318E635241'::geometry),ST_AsText('010100000052B81E45200D3A417B14AE378E635241'::geometry);
st_astext | st_astext
------------------------------------------------------------
POINT(1707296.37 4820536.77) | POINT(1707296.27 4820536.87)
}}}
As you can see the 2 points are not so close and one would think that the
bounding box of a point is the point itself.
Without knowing that float4 is used for bounding boxes the result may
indeed appear to be wrong.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/1160#comment:2>
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-devel
mailing list