extend attribute collector to provide tokens usable in datasource where clauses #871

artemp opened this Issue Oct 11, 2011 · 1 comment


None yet

2 participants

Mapnik member

postgis queries benefit from using where clauses like:

type in ('this','that','other')

To form these up manually is fine but takes time and is error prone (lots of manual checking between style and layer). It would be ideal if mapnik could help this be more automatic.

My best idea is that the attribute collector could provide the needed tokens and they could be passed to the mapnik::query so that ds plugins like postgis could populate some variable like !fields:type! dynamically during query construction.

Perhaps then a style sheet author could write: where type in (!fields:type!) and !fields:type! would evaluate to 'this','that','other'.

@springmeyer springmeyer closed this Sep 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment