mapbox / mapnik-vector-tile

Mapnik implemention of Mapbox Vector Tile specification
BSD 3-Clause "New" or "Revised" License
553 stars 117 forks source link

mapnik::attributes variables (to replace @tokens in postgis SQL sub-queries) #218

Closed oleksii-leonov closed 6 years ago

oleksii-leonov commented 8 years ago

Is there any ability to set mapnik::attributes variables (used to replace @tokens in postgis SQL sub-queries) for rendering VectorTiles?

As example, with default mapnik raster tiles rendering it works next way:

mapnik::attributes vars;
// ... setting vars
mapnik::agg_renderer<mapnik::image_rgba8> ren(map, req, vars, im, scale_factor, 0, 0);

But looks like there no ability to set this variables with mapnik::vector_tile_impl::processor (https://github.com/mapbox/mapnik-vector-tile/blob/master/src/vector_tile_processor.hpp#L50).

springmeyer commented 6 years ago

Solved in #248 thanks to @rafatower