[postgis-tickets] [PostGIS] #5382: ST_AsMVTGeom output is snapped to grid incorrectly
PostGIS
trac at osgeo.org
Tue Jun 27 23:47:41 PDT 2023
#5382: ST_AsMVTGeom output is snapped to grid incorrectly
----------------------+----------------------------
Reporter: mknycha | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 3.1.10
Component: postgis | Version: 3.3.x
Resolution: | Keywords:
----------------------+----------------------------
Comment (by mknycha):
Here is what is being passed to ST_SnapToGrid in my replicated code:
Unclipped: POLYGON ((0 20, 8 20, 12 8, -6 10, 0 20))
Clipped: POLYGON ((0 9.333, 0 20, 8 20, 12 8, 0 9.333))
Maybe the issue is not with snapping to the grid, but happens somewhere
earlier?
And regarding
>As far as a problem with MVT, since the snapping is by default happening
on a 4096x4096 grid I find it hard to get worked up about which particular
grid cell is getting snapped to.
I may not fully understand the function, but isn't that the case for the
default extent? Because I am passing 20 there.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5382#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