Readme added

This commit is contained in:
Komяpa 2010-05-13 14:47:29 +03:00
parent 16fc2ecec3
commit f6f708a524
3 changed files with 22 additions and 3 deletions

19
README Normal file
View file

@ -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!

View file

@ -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 = []

View file

@ -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()]