像这样的东西,以便将变量作为参数传递:
"vector": {
"allowed origin": "*",
"provider": {
"class": "TileStache.Goodies.VecTiles:Provider",
"kwargs": {
"dbinfo": {
"host": "localhost",
"user": "postgres",
"database": "mydb"
},
"queries": [
"SELECT something_interesting, geometry AS __geometry__ FROM mydb where something_interesting > [**variable**]"
]
}
}
}
如果没有,最好的方法是什么?我们的想法是能够动态查看和与postGIS数据交互?我知道这可能会破坏缓存json磁贴的能力。