2

像这样的东西,一个变量作为参数传入:

"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 切片的能力。

4

0 回答 0