[postgis-tickets] [PostGIS] #5070: TWKB: last point of the linearing hole of a polygon is lost when xyprecision < 0

PostGIS trac at osgeo.org
Sun Jan 30 22:34:24 PST 2022


#5070: TWKB: last point of the linearing hole of a polygon is lost when
xyprecision < 0
----------------------------+---------------------------
  Reporter:  Aurélien Mino  |      Owner:  pramsey
      Type:  defect         |     Status:  new
  Priority:  medium         |  Milestone:  PostGIS 3.3.0
 Component:  postgis        |    Version:  2.5.x
Resolution:                 |   Keywords:
----------------------------+---------------------------

Comment (by nicklas):

 That the point disapears comes from the optimization of removing identical
 points.
 From the discussion in the github thread, do you agree this is correct?

 But I do not remember why we don't remove the hole when all the points are
 the same.
 I might recall we had some discussion about it, but I am not sure. The
 alternative would be to:

 "If we don't have at least 3 different points in a hola after reducing
 precision we remove the hole".

 What talks against that solution is that it would put an overhead for all
 holes.
 I see ST_Makevalid can do that job as a postprocessing. I guess that is
 what we thought.

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5070#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