[postgis-tickets] [PostGIS] #4310: Improve MVT vectortile_layer_combine to remove duplicates

PostGIS trac at osgeo.org
Mon Jan 28 07:31:20 PST 2019


#4310: Improve MVT vectortile_layer_combine to remove duplicates
-------------------------+---------------------------
 Reporter:  Algunenano   |      Owner:  Algunenano
     Type:  enhancement  |     Status:  assigned
 Priority:  medium       |  Milestone:  PostGIS 3.0.0
Component:  postgis      |    Version:  trunk
 Keywords:               |
-------------------------+---------------------------
 In the current parallel implementation of ST_AsMVT we combine layers by
 copying both keys and values from both layers on top of each other.

 This is fast but introduces the possibility of duplicates (both in keys
 and values), which is discouraged in the v2 spec. This means that the
 final tiles end up being bigger than they should, and might create issues
 with decoders that incorrectly rely on the keys to be unique (e.g:
 https://github.com/mapbox/vector-tile/issues/55).

 We should look for a performant way to merge the layers removing
 duplicates, if possible.

 Also, that part of the code isn't currently being tested, so we'd need to
 look for the proper way to do it (raising costs for the test or disabling
 certain plans).

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