从arcserver服务中得到地图对象

 

代码
IGISServerConnection pGSC = new GISServerConnectionClass();
pGSC.Connect(
"GISServer");
IServerObjectManager pSOM
= pGSC.ServerObjectManager;
IServerContext pSC
= pSOM.CreateServerContext("chinamap9", "MapServer");
IMapServer pMS
= pSC.ServerObject as IMapServer;
IMapServerObjects pMSO
= pMS as IMapServerObjects;
IMap pMap
= pMSO.get_Map(pMS.DefaultMapName);
pSC.ReleaseContext();

 

 

 

posted @ 2009-12-23 22:10  因是因非  阅读(249)  评论(0编辑  收藏  举报