[PostGIS] #6037: st_union with gridSize produces unexpected result

PostGIS trac at osgeo.org
Fri Jan 16 06:52:30 PST 2026


#6037: st_union with gridSize produces unexpected result
------------------------------------+---------------------
  Reporter:  Asger Skovbo Petersen  |      Owner:  pramsey
      Type:  defect                 |     Status:  new
  Priority:  medium                 |  Milestone:
 Component:  postgis                |    Version:  3.6.x
Resolution:                         |   Keywords:
------------------------------------+---------------------
Comment (by strk):

 Geometry b (the second one, containing the first one) is not equal to its
 reduced-precision version:

 {{{
 with inp as ( select 'POLYGON ((450329.74 6273269.32, 450317.5 6273266.14,
 450317.49 6273266.14, 450329.74 6273269.32))'::geometry g ) select
 ST_Equals(g, ST_ReducePrecision(g, 0.01))
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/6037#comment:1>
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