[postgis-tickets] [PostGIS] #5425: ST_SnapToGrid returns not correct data

PostGIS trac at osgeo.org
Tue Sep 12 15:36:59 PDT 2023


#5425: ST_SnapToGrid returns not correct data
----------------------+---------------------------------------
  Reporter:  tmazuga  |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  medium   |  Milestone:  PostGIS Fund Me
 Component:  postgis  |    Version:  master
Resolution:           |   Keywords:  ST_SnapToGrid, robustness
----------------------+---------------------------------------
Comment (by mdavis):

 Here is a reproducer for the problem reported in
 https://lists.osgeo.org/pipermail/postgis-users/2006-January/010861.html
 {{{
 SELECT ST_AsText( ST_SnapToGrid(
                        ST_SnapToGrid('POINT(1.23456789
 9.87654321)'::geometry, 0.001),
                     0.000001) );

 --------------------------------
  POINT(1.235 9.876999999999999)
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5425#comment:4>
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