0

根据我在一些相关帖子上阅读的内容,我在 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 以上的图块?

4

1 回答 1

0

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

于 2012-03-30T15:33:20.033 回答