摘要: 1.首先安装python2.6并配置环境变量 2.安装Setup tools(方面安装其他软件)和GDAL 3.使用Setup tools安装TileStache,ModestMaps,PIL(TileStache依赖于这两项) easy_install ti...
1.首先安装python2.6并配置环境变量
2.安装Setup tools(方面安装其他软件)和GDAL
3.使用Setup tools安装TileStache,ModestMaps,PIL(TileStache依赖于这两项)
easy_install tilestache easy_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.结果