Python Setup tools :setuptools-0.6c11.win32-py2.6
GDAL:GDAL-1.9.2.win32-py2.6
TileStache:TileStache-1.42.1
1.First install python2.6 and configure the environment to generate geojson tiles. TileStache: TileStache-1.42.1
1. First install python2.6 and configure environment variables
2. Install Setup tools (for installing other software) and GDAL
3. Install TileStache, ModestMaps, PIL (for installing other software), PIL (for installing other software)
3. ModestMaps, PIL (TileStache depends on these two)
easy_install tilestache
easy_install PIL
easy_install ModestMaps
4. Configure the cfg file in the folder in TileStache
{
"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. Then use the tilestache-seed for slicing
6. Results
The application of vector slicing in OL will be introduced later. vector slicing is loaded in OpenLayers, which can be effective in solving the problem of large data volume