Engine中如何获取缓存服务中各个级别的Scale数值

Engine中如何获取缓存服务中各个级别的Scale数值
已邀请:

朱新颖

赞同来自:

【解决办法】:
首先获取到IMapServer,进而通过ITiledMapServer.GetTileCacheInfo获取到ITileCacheInfo,通过其LODInfos属性可以获取到各个级别的Scale值。
ITiledMapServer tiledMapServer = mapserver as ITiledMapServer;
            ITileCacheInfo tileCacheInfo = tiledMapServer.GetTileCacheInfo(World Cities Population);
            ILODInfos LODInfos = tileCacheInfo.LODInfos;
            for (int i = 0; i < LODInfos.Count; i++)
            {
                ILODInfo LODInfo = LODInfos.get_Element(i);
                double scale = LODInfo.Scale;
            }

要回复问题请先登录注册