[postgis-tickets] [PostGIS] #4120: ST_AsMVTGeom: Clip using tile coordinates

PostGIS trac at osgeo.org
Tue Jul 10 07:06:00 PDT 2018


#4120: ST_AsMVTGeom: Clip using tile coordinates
------------------------+---------------------------
 Reporter:  Algunenano  |      Owner:  Algunenano
     Type:  defect      |     Status:  assigned
 Priority:  medium      |  Milestone:  PostGIS 2.5.0
Component:  postgis     |    Version:  trunk
 Keywords:              |
------------------------+---------------------------
 ST_AsMVTGeom is clipping before doing the projection transformation but
 the buffer is given in tile coordinates, so some points that fall within
 the full extent are being incorrectly dropped.

 Example:
 {{{
 SELECT ST_AsText(ST_AsMVTGeom(
         ST_Point(11.49, 11.49),
         ST_MakeBox2D(ST_Point(0, 0), ST_Point(10, 10)),
         10, 1, true));
  st_astext
 -----------

 (1 row)
 }}}

 If we disable clipping we can see that the point falls within the bbox
 `(-1 -1, 11 11)` :
 {{{
 SELECT ST_AsText(ST_AsMVTGeom(
 ST_Point(11.49, 11.49),
 ST_MakeBox2D(ST_Point(0, 0), ST_Point(10, 10)),
 10, 1, false));
   st_astext
 --------------
  POINT(11 -1)
 (1 row)
 }}}

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