Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't start the application - kothic.py is missing #5

Closed
M4rtinK opened this issue Oct 16, 2012 · 3 comments
Closed

can't start the application - kothic.py is missing #5

M4rtinK opened this issue Oct 16, 2012 · 3 comments

Comments

@M4rtinK
Copy link
Contributor

M4rtinK commented Oct 16, 2012

According to the README, after generating the tiles & checking they are generated (they are), I should run the application with:

python kothic.py

Unfortunately, there is no kothic.py in the src directory.

I've tried running komap.py, and this is what I get:

Traceback (most recent call last):
  File "komap.py", line 147, in <module>
    style.parse(open(options.filename,"r").read())
TypeError: coercing to Unicode: need string or buffer, NoneType found

I've also tried running gtk-app.py it launches fine, but only shows solid light-blue in its window. Changing style or clicking reload style makes no difference. It prints this to stdout when started.

As for the data I have used for testing:
source OSM file
the tiles generated from it

Let me know if you need any more info. :)

PS.: Yeah, I've said I'll check Kothic out back at SOTM EU in Vienna but haven't really got to it until now. :)

@Komzpa
Copy link
Member

Komzpa commented Jan 2, 2013

gtk-app zooms to Minsk by default, it's hardcoded in self.center_coord = (27.6549791, 53.8698). Have you tried to change that? :3

@M4rtinK
Copy link
Contributor Author

M4rtinK commented Jan 3, 2013

I have changed it to:
self.center_coord = (48.870278, 16.221389)
But I still got the light-blue window.
This are the commands I've used & the output I got:
https://gist.github.com/4444222
Also, this is the dataset I've used for testing:
http://modrana.org/kothic/lechovice_map.osm
And this is the tiles folder it produced from the source file:
http://modrana.org/kothic/tiles.tgz

Let me know what additional info I can provide. :)
Also anything else I should try to get it working ?

@M4rtinK
Copy link
Contributor Author

M4rtinK commented Apr 8, 2013

OK, I think I've finally found the culprit - the initial coordinates are in the lon,lat format, not lat, lon ! :D

After reversing the coordinates, both the example GTK application and the image generation app return nicely rendered output ! :)

BTW, the coordinates in the wrong order were mapped to the middle of a desert in the middle east. :)

@Komzpa Komzpa closed this as completed May 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants