Tilestache:无法从postGIS SQL渲染数据

时间:2017-08-03 05:33:31

标签: python json tilestache

我的tilestache.cfg如下:

{
  "cache": {
        "name": "Disk",
        "path": "mnt/tile-cache/"
    }
    ,    
  "layers":
  {  
     "countries":
    {
      "provider": {
            "name": "vector", 
            "driver": "PostgreSQL",
            "parameters": 
             {
            "dbname": "test1",
            "host" : "localhost",
            "port" : "5432",
            "user": "postgres",
                        "password":"postgres",
                        "table": "ne_110m_admin_0_countries",
                         "query":"SELECT admin, ST_Y(ST_Centroid(wkb_geometry)) as lattitude FROM ne_110m_admin_0_countries;"

             }}}}}

我收到错误

File "/usr/local/lib/python2.7/dist-packages/TileStache-1.51.6-py2.7.egg/TileStache/__init__.py", line 303, in requestHandler2
    print >> out, 'Known unknown!'

我使用的是URL 本地主机:8080 /国家/ 1/1 / 1.json

请帮我渲染瓷砖。

0 个答案:

没有答案