[postgis-tickets] [PostGIS] #4556: st_asmvtgeom sometimes produces leaking polygons (postgis 3.0)

PostGIS trac at osgeo.org
Wed Oct 23 07:12:16 PDT 2019


#4556: st_asmvtgeom sometimes produces leaking polygons (postgis 3.0)
----------------------+---------------------------
  Reporter:  anneb    |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  medium   |  Milestone:  PostGIS 3.0.0
 Component:  postgis  |    Version:
Resolution:           |   Keywords:
----------------------+---------------------------

Comment (by Algunenano):

 > I believe just commenting out line:
 > lwgeom_simplify_in_place(lwgeom, res, preserve_collapsed);
 > is enough to solve the problem.

 Thanks.

 We rely on this step for 2 things:
 - Remove unnecessary points in some scenarios (for example if you have a
 straight horizontal line (0 0, 0 1, 0 4, 0 10) it'd be transformed into (0
 0, 0 10)).
 - For big lines / polygons there are some cases where it's faster to
 simplify the polygon first before doing the transformation, because the
 amount of point removed is important. This was true almost always with the
 GEOS backend, but it isn't anymore.

 The ideal situation would be to not need these calls (simplify,
 removeRepeatedPoints) at all but I'd need to look into it in more detail
 and see if we can keep the same performance and behaviour without them.

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