OpenGeoscience / ktile

A stylish alternative for caching your map tiles.
http://tilestache.org
BSD 3-Clause "New" or "Revised" License
15 stars 3 forks source link

Added a tornado-tilestache example #4

Closed dorukozturk closed 8 years ago

dorukozturk commented 8 years ago

@aashish24 PTAL

aashish24 commented 8 years ago

great! can you add a readme on how to setup tornado (or a pointer to some document)?

dorukozturk commented 8 years ago

@aashish24 I added some instructions. PTAL

aashish24 commented 8 years ago

thanks @dorukozturk I see the image but I also seeing this error:

Traceback (most recent call last): File "/home/chaudhary/tools/tilestache/src.git/tilestache_dev/local/lib/python2.7/site-packages/tornado/web.py", line 1467, in _execute result = method(_self.path_args, *_self.path_kwargs) File "server.py", line 76, in get layer_name, z, x, y = components ValueError: need more than 1 value to unpack

dorukozturk commented 8 years ago

@aashish24 The browser is sending one extra request when the page is first loaded. The request is to get the favicon. I can do a try except block or add a favicon. I will fix this.

dorukozturk commented 8 years ago

@aashish24 https://github.com/OpenGeoscience/KTile/pull/4/commits/ab9d89da9ac77207aa3f9e420b45a3502d91f348 Attempts to fix this.

aashish24 commented 8 years ago

thanks its better but may not be not totally removed. Also, can you address style issues?

I am getting this now: (dev)[chaudhary@einstein tornado (tornado-example)]$ python server.py WARNING:tornado.access:404 GET /favicon.ico (127.0.0.1) 1.09ms

aashish24 commented 8 years ago

@dorukozturk I pushed a change, have a look and let me know if you have any suggestions. I will add some docs and bit more optimization and then will call it done.