需下載的工具有:python:python-2.6
Python Setup tools :setuptools-0.6c11.win32-py2.6
GDAL:GDAL-1.9.2.win32-py2.6
TileStache:TileStache-1.42.1
1.首先安裝python2.6 並配置環境變量
2.安裝Setup tools (方面安裝其他軟件)和GDAL
3.使用Setup tools安裝TileStache, ModestMaps, PIL(TileStache 依賴於這兩項)
easy_install tilestacheeasy_install PIL
easy_install ModestMaps

4.在下載的TileStache中的文件夾中配置cfg文件
{
"cache":
{
"name": "Disk",
"path": "/tmp/stache",
"umask": "0000"
},
"layers":
{
"postgis":
{
"provider": {"name": "vector", "driver": "PostgreSQL",
"parameters": {"dbname": "postgis", "user": "postgres","password":"postgres",
"table": "mainroad"}}
}
}
}
}
5.然后用tilestache-seed進行切片
6.結果
后面會推出矢量切片在OL中的應用。
