generate_tiles.py在完成请求的缩放级别之前停止

时间:2012-03-06 07:21:31

标签: python mapnik

根据我在一些相关帖子上阅读的内容,我在generate_tiles.py中设置NUM_THREADS = 1(因为我在linux系统上只有一个处理器)。

以下是generate_tiles.py末尾请求的缩放级别:

# World
bbox = (-180.0,-90.0, 180.0,90.0)

render_tiles(bbox, mapfile, tile_dir, 0, 4, "World")

# western US
minZoom = 5
maxZoom = 8
bbox = (-126.592,29.0454,-96.225,49.3887)
render_tiles(bbox, mapfile, tile_dir, minZoom, maxZoom)

# NM
minZoom = 9
maxZoom = 12
bbox = (-109.22314, 37.28077, -102.56542, 31.46398)
render_tiles(bbox, mapfile, tile_dir, minZoom, maxZoom)

# Albuquerque, East Mountains, Jemez, Pecos
minZoom = 13
maxZoom = 15
bbox = (-107.35546, 36.01150, -105.18017, 34.73952)
render_tiles(bbox, mapfile, tile_dir, minZoom, maxZoom) 

以下是generate_tiles.py的终止方式:

...
unknown : 8 59 104  
unknown : 8 59 105  
unknown : 8 59 106  
render_tiles( (-109.22314, 37.28077, -102.56542, 31.46398) /home/user/data/downloads/svn/mapnik-r27279/osm.xml /home/user/data/tilecache/tilelite/ 9 12 unknown )
9
10
11
12
render_tiles( (-107.35546, 36.0115, -105.18017, 34.73952) /home/user/data/downloads/svn/mapnik-r27279/osm.xml /home/user/data/tilecache/tilelite/ 13 15 unknown )
13
14
15

因此,您可以看到它创建的最后一个缩放级别为8级,之后它只创建文件夹然后退出。如何让generate_tiles.py创建超过缩放级别8的图块?

1 个答案:

答案 0 :(得分:0)

render_tiles参数应为(-109.22314,31.46398,-102.56542,37.28077) (-107.35546,34.73952,-105.18017,36.0115)