[postgis-tickets] [PostGIS] #5520: ST_ReducePrecision not rounding coordinates as expected

PostGIS trac at osgeo.org
Fri Sep 8 13:17:21 PDT 2023


#5520: ST_ReducePrecision not rounding coordinates as expected
-----------------------+---------------------------
  Reporter:  andre286  |      Owner:  pramsey
      Type:  defect    |     Status:  new
  Priority:  high      |  Milestone:  PostGIS 3.4.1
 Component:  postgis   |    Version:  3.4.x
Resolution:            |   Keywords:
-----------------------+---------------------------
Comment (by mdavis):

 Here is a simpler reproducer:
 {{{
 SELECT ST_AsText(ST_ReducePrecision(
   'LINESTRING (657035.913 6475590.114,657075.57 6475500)' ,0.001));
 }}}

 {{{
                               st_astext
 ---------------------------------------------------------------------
  LINESTRING(657035.9130000001 6475590.114,657075.5700000001 6475500)
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5520#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-tickets mailing list