From f6f708a524bc8dc3ac89c64339c98ba51c1c6650 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kom=D1=8Fpa?= Date: Thu, 13 May 2010 14:47:29 +0300 Subject: [PATCH] Readme added --- README | 19 +++++++++++++++++++ src/osm2tiles.py | 2 +- src/render.py | 4 ++-- 3 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 README diff --git a/README b/README new file mode 100644 index 0000000..aaa6cd8 --- /dev/null +++ b/README @@ -0,0 +1,19 @@ + Kothic Map Renderer + + Depends: + 1. tWMS http://twms.googlecode.com/ + symlink twms directory into src/ + 2. python-lxml + 3. python-psyco, if available. + 4. pygtk for GUI + 5. pycairo + + + To run: + 1. Install all dependancies. + 2. cd src/ + 3. cat small_test_osm_dump.osm | ./osm2tiles.py + 4. wait a bit and check if tiles ggot generated + 5. python kothic.py to run GUI + + NOT READY FOR DAILY USAGE! \ No newline at end of file diff --git a/src/osm2tiles.py b/src/osm2tiles.py index 9d632ef..25a4052 100644 --- a/src/osm2tiles.py +++ b/src/osm2tiles.py @@ -76,7 +76,7 @@ def main (): WAYS_READ = 0 tilefiles = {} tilefiles_hist = [] - osm_infile = open("minsk.osm", "rb") + #osm_infile = open("minsk.osm", "rb") osm_infile = sys.stdin nodes = {} curway = [] diff --git a/src/render.py b/src/render.py index 843e1af..77c395e 100644 --- a/src/render.py +++ b/src/render.py @@ -79,8 +79,8 @@ class RasterTile: cr = cairo.Context(self.surface) cr.rectangle(0, 0, self.w, self.h) - #cr.set_source_rgb(0.7, 0.7, 0.7) - cr.set_source_rgb(0, 0, 0) + cr.set_source_rgb(0.7, 0.7, 0.7) + #cr.set_source_rgb(0, 0, 0) cr.fill() datatimer = Timer("Asking backend and styling") ww = [ (x, style.get_style("way", x.tags)) for x in self.data.get_vectors(bbox,self.zoomlevel).values()]