博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

GeoStTool.dll-设置多个Raster服务来处理背景地图

Posted on 2009-08-31 15:17  懒人ABC  阅读(190)  评论(0编辑  收藏  举报

一般情况下,我们都是只指定一个SIDS来生成背景地图的,但是当使用的用户很多的时候,一个Raster服务将不能满足需求。
解决方案:
     1,配置多台服务器,实现分流
     2,就是我们要接下来实现的方法:
           设置ServiceTag(MapGateWay.ini)
           

ServiceDesc1=ServiceDesc1
Server1
=localhost
Port1
=11501

ServiceDesc2
=ServiceDesc2
Server2
=localhost
Port2
=11502

ServiceDesc3
=ServiceDesc3
Server3
=localhost
Port3
=11503

ServiceDesc4
=ServiceDesc4
Server4
=localhost
Port4
=11504

ServiceDesc5
=ServiceDesc5
Server5
=localhost
Port5
=11505

ServiceDesc6
=ServiceDesc6
Server6
=localhost
Port6
=11506

ServiceDesc7
=ServiceDesc7
Server7
=localhost
Port7
=11507

ServiceDesc8
=ServiceDesc8
Server8
=localhost
Port8
=11508

ServiceDesc9
=ServiceDesc9
Server9
=localhost
Port9
=11509

ServiceDesc10
=ServiceDesc10
Server10
=localhost
Port10
=11510

[ServiceTag]
1001=1,2,3
1002=1
1003=3
1004=4
1005=5
1006=1
1007=7
1008=8
1009=9
1010=10
 这里的ServiceTag的意思就是说,当请求的SIDS=1001时,使用Server1,Server2,Server3三个服务来共同处理,当你请求时如果Server1忙时,可能就由Server2来处理地图的绘制。
但是这种情况下,客户端用户不能得知到底哪个服务处理了我的请求。
要想解决这个问题,我们还得设置一个参数SNO(EX:SNO=2),这个参数的意思就是指定哪个服务来处理请求。
因为像广域地图几乎每个服务都能做到地图的绘制,但是向住宅地图可能就SIDS=1001的能实现,SIDS=1002的未必有这个功能。