內蒙古java團隊

          j2se,j2ee開發組
          posts - 139, comments - 212, trackbacks - 0, articles - 65
            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

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

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

          ?????? public override Uri GetUri(int x, int y, int zoomLevel)
          ??????? {//適用于MS Silverlight mapControl,xy為行列號,zoomLevel為當前地圖比例級別
          ??????????? 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;
          ??????? }

          主站蜘蛛池模板: 邵武市| 新邵县| 北安市| 乐都县| 罗甸县| 锦州市| 噶尔县| 五原县| 富顺县| 延庆县| 灌南县| 烟台市| 耒阳市| 安顺市| 青铜峡市| 绥芬河市| 长宁县| 信宜市| 合江县| 莎车县| 德保县| 宾川县| 嵊州市| 漠河县| 肃宁县| 宜良县| 临沂市| 诏安县| 武定县| 上饶县| 府谷县| 宁国市| 米易县| 哈尔滨市| 眉山市| 页游| 邢台县| 全南县| 巴东县| 简阳市| 伊宁县|