內(nèi)蒙古java團(tuán)隊(duì)

          j2se,j2ee開(kāi)發(fā)組
          posts - 139, comments - 212, trackbacks - 0, articles - 65
            BlogJava :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

          此TileCache非彼Py TileCache,而是MapGuide OS/E自帶地圖緩存”名稱”。

          現(xiàn)在成熟的地圖平臺(tái)均不同程度上支持瓦片生成方式,而且每個(gè)WebGIS產(chǎn)品均有各自不同的瓦片(Tile)組織方式。MapGuide OS/E 的和Bing Map、Google Map、TMS的組織方式有很大不同,如果可以知道存儲(chǔ)方式就可以自己實(shí)現(xiàn)MapGuide Provider,部署地圖時(shí)則不需要安裝MapGuide OS/E。現(xiàn)分析下以供有緣人使用。

          ?????? public override Uri GetUri(int x, int y, int zoomLevel)
          ??????? {//適用于MS Silverlight mapControl,xy為行列號(hào),zoomLevel為當(dāng)前地圖比例級(jí)別
          ??????????? string tileRowGroup = “”;
          ??????????? string tileColGroup = “”;
          ??????????? if (x >= 0 && y >= 0 )
          ??????????? {
          ??????????????? tileRowGroup += (Math.Floor(x/tileRowsPerFolder) * tileRowsPerFolder).ToString();//tileRowsPerFolder=30
          ??????????????? tileColGroup += (Math.Floor(y / tileColumnsPerFolder) * tileColumnsPerFolder).ToString();
          ??????????????? string tilePath = “/S” + Math.Floor(zoomLevel)
          ??????????????? + “/” + basemaplayergroupname
          ??????????????? + “/R” + tileRowGroup
          ??????????????? + “/C” + tileColGroup
          ??????????????? + “/” + (x % tileRowsPerFolder)
          ??????????????? + “_” + (y % tileColumnsPerFolder)
          ??????????????? +”.” + this.format;//png
          ??????????????? return new Uri(this.url + tilePath);
          ??????????? }
          ??????????? return null;
          ??????? }

          主站蜘蛛池模板: 南漳县| 丹棱县| 蓬莱市| 佛学| 武汉市| 都匀市| 萨迦县| 方正县| 霸州市| 山东省| 额敏县| 板桥市| 蛟河市| 桂平市| 皮山县| 宁远县| 苍山县| 修武县| 大足县| 罗江县| 福建省| 交城县| 游戏| 盐亭县| 白城市| 昭苏县| 江永县| 廊坊市| 云龙县| 萝北县| 定西市| 庆安县| 玛沁县| 乌拉特后旗| 巧家县| 天长市| 天等县| 萨嘎县| 资阳市| 奎屯市| 西乌珠穆沁旗|