[postgis-tickets] [PostGIS] #4348: Invalid geometry out of ST_AsMVTGeom
PostGIS
trac at osgeo.org
Tue Mar 12 09:40:34 PDT 2019
#4348: Invalid geometry out of ST_AsMVTGeom
-------------------------+---------------------------
Reporter: Algunenano | Owner: Algunenano
Type: defect | Status: assigned
Priority: medium | Milestone: PostGIS 2.5.3
Component: postgis | Version: 2.5.x
Resolution: | Keywords:
-------------------------+---------------------------
Comment (by Algunenano):
The issue wasn't in ST_MakeValid, but on gridding the geometry after
making it valid (needed to remove float coordinates). I've needed pretty
significant changes to fix this, which was a PITA since Wagyu was already
working correctly with this input.
The full PR and explication is in
https://github.com/postgis/postgis/pull/382 but essentially since we are
making polygons invalid in the process, I opted for auto fix them when the
clipping goes awry, and applied several changes (new grid algorithm,
iterative grid + validation) to make sure everything is clean on output
and minimize the cost of the validation itself.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4348#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