-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Innefective vars in ST_AsMVT queries #577
Comments
That is dependent on some mapnik & friends changes: |
Sorry about the partial and inaccurate response above. I'll try to elaborate it a little further: Mapnik variables in general are used like this:
and now we have full support for them in mapnik and node-mapnik starting with Windshaft v4.3.1: https://github.com/CartoDB/Windshaft/blob/master/NEWS.md#version-431 Here's an example from the node-mapnik tests: https://github.com/CartoDB/node-mapnik/pull/10/files#diff-34a62dfe0f38cdda7b5022e3a70eb9e6R11 But you were talking specifically about https://github.com/CartoDB/Windshaft/blob/1000x/lib/windshaft/utils/substitution_tokens.js Now, this should open up the possibility of the datasources refactor you had in mind in To sum up: I'd add them to Hope this sheds some light on the matter. Hope this can be somehow useful for the aggregation stuff. |
Related: CartoDB/mapnik#29 |
When handling a query to be passed to
ST_AsMVT
we inject Mapnik tokens (bbox, scale-denominator, pixel_width, pixel_height) and also three additional values:var_zoom
,var_x
,var_y
.This is ineffective because
SubstitutionToken
only supports the mapnik tokens.If the additional var variables are desirable we should add them to SubstitutionToken, otherwise remove them. I find them very convenient except that they can only be used with queries to be sent to ST_AsMVT (not Mapnik).
@rafatower : I guess you introduced these variables, do you remember what was the intention?
cc @dgaubert
The text was updated successfully, but these errors were encountered: