TileStache overwriting/ignoring seeded tiles

62 views
Skip to first unread message

Thomas Hirsch

unread,
Mar 9, 2012, 4:03:31 AM3/9/12
to tiles...@googlegroups.com
Hi all - 

I am trying to set up a pretty vanilla polymaps / nginx / gunicorn / tilestache / postgis setup. It works on both ends (i.e. you can request a tile via polymaps and get a reply from the 'stache) and I can seed tiles (to disk) using tilestache-seed.py from my PostGIS data. 
However, when I try to run gunicorn/TileStache, using the exact same config file I used for seeding, it ignores the preseeded tiles and overwrites them with empty json featurelists. 

Does that sound familiar? What could be wrong? 
tilestache-seed.py and gunicorn run as the same user.

Thank you in advance -
Thomas

Commands:
$ tilestache-seed.py -c borders.cfg -l admin 0 1 2 3 4 5 6 7 8 9 10 -b 57 4 63 13 -e geojson
$ gunicorn -b ...:8000 "TileStache:WSGITileServer('.../borders.cfg')"

Config:
{
  "cache": {
    "name": "Disk",
    "path": "/tmp/stache",
    "umask": "0000",
    "dirs": "portable",
    "gzip": ["xml", "json"]
  },
  "layers": { 
    "admin": {
      "provider": {"name": "vector", "driver": "PostgreSQL",
                   "parameters": {"host": "...", "dbname": "kartdata", "user": "...", "port":"2345",
                                  "password": "...", "query": "select st_transform(geometri, 4326) from administrative_borders"}
                  },
      "projection": "WGS84" 
    }
  },
  "dirpath": "/opt/maps/test"

}

Thomas Hirsch

unread,
Mar 12, 2012, 7:31:36 AM3/12/12
to tiles...@googlegroups.com
Just checking in to say that I seem to have this fixed. I'm not certain if I was confused by the default bounding box.
Reply all
Reply to author
Forward
0 new messages