source: subversion/applications/rendering/pyrender/testmerge.py @ 30322

Last change on this file since 30322 was 8329, checked in by ojw, 11 years ago

When merging tiles together, remove nodes which aren't a junction, or
which are within 2 pixels of the previous node in the way

File size: 526 bytes
Line 
1import os
2from tiledata import GetOsmTileData
3from OsmMerge import OsmMerge
4
5
6def test(z,x,y):
7  filenames = []
8  for i in (0,1):
9    for j in (0,1):
10      lx = x * 2 + i
11      ly = y * 2 + j
12      lz = z + 1
13      #print "Downloading subtile %d,%d at %d" % (x,y,z)
14      # download (or otherwise obtain) each subtile
15      filenames.append(GetOsmTileData(lz,lx,ly))
16  # merge them together
17  OsmMerge("merged.osm", z, filenames)
18
19if(__name__ == "__main__"):
20  #test(14,8009,5443) # swansea
21  test(13,4070,2682) # leicester
22 
Note: See TracBrowser for help on using the repository browser.