win7下使用TileStache生成geojson格式的Tiles
需下载的工具有: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中的应用。