[mapserver-users] mapserver tilecache
赫玄惠
xiaoshitou1986126 at 126.com
Tue Aug 9 01:45:47 PDT 2011
I has wrote a mapfile. It can be published successfully with openlayers. But its speed is very slow. So I try to use tilecache to improve the speed.
now I have install the tilecache, and it can run with the example.But it doesn't run with my mapfile. Here is the program
[road]
type=WMS
url=http://localhost/cgi-bin/mapserv.exe?map=/ms4w/Apache/htodcs/file/jia1_test.map&transparent=true&
layers=build,street
extension=png
bbox=-180 -90 180 90
maxResolution=0.0439453
srs=EPSG:4326
level=20
the html as follow:
layer = new OpenLayers.Layer.WMS( "global",
"http://localhost/tilecache-2.10/tilecache.py?",
{layers: 'build,street',
format: 'image/png' } );
map.addLayer(layer);
Anyone can help me,thanks!!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110809/bac725c8/attachment.htm>
More information about the MapServer-users
mailing list