1. ArcGIS Server瓦片格式
1.1. 文件说明
第一层目录:瓦片描述信息,包含了:conf.xml、conf.cdi及缺省标注目录名_ _alllayers
第二层目录:L+层数(0补齐,2位数)
第三层目录:R+瓦片行号的16进制的8位数(0补齐)
第四层目录:C+瓦片列号的16进制的8位数(0补齐)
conf.xml:定义了坐标投影参考信息、瓦片分级信息
conf.cdi:定义了瓦片覆盖区域
_alllayers:分级存储了瓦片目录
1.2. 文件目录
1.1.1. 第一层
1.1.2. 第二层
1.1.3. 第三层
1.1.4. 第四层
1.3. 切片规则
经纬度坐标一般默认(x0,y0)=(-400,400)作为切图的起始点,即从这开始算行列号。假设切图的地图某点坐标为x,y,切图的瓦片大小为256,其瓦片的级别分辨率为resolution,则计算该地图点的行列号计算如下:
col = | floor((x0 – x)/(256*resolution)) |;
row = | floor((y0 – y)/(256*resolution)) |;
LOGInfos是每个层级切片信息,ID是层级,Scale是比例尺大小,Resolution是当前比例尺层级下切片的每个像素点代表的实际长度;
0级 Resolution = 20037508.3427892 * 2 / 256 = 156543.03392804062
1级 Resolution = 20037508.3427892 * 2 / 256 / 2 = 78271.51696402031
n级 Resolution = 20037508.3427892 * 2 / 256 / 2 ^ n = ****
……………….
col = | floor((x0 – x)/(256*resolution)) = floor((-20037508.3427892-(-20037508.3427892)/(256 * 156543.03392804062)) | = 0
row = | floor((y0 – y)/(256*resolution)) = flow((20037508.3430388-20037508.3430388)/(256 * 156543.03392804062)) | = 0
col = | floor((x0 – x)/(256*resolution)) = floor((-20037508.3427892-12388034.5186361)/(256 * 156543.03392804062)) | = 0
row = | floor((y0 – y)/(256*resolution)) = flow((20037508.3430388-3594413.03659627)/(256 * 156543.03392804062)) | = 0
col = | floor((x0 – x)/(256*resolution)) = floor((-20037508.3427892-12388034.5186361)/(256 * 0.597164283477939)) | = 212106 = 33C8A(转16进制)
row = | floor((y0 – y)/(256*resolution)) = flow((20037508.3430388-3594413.03659627)/(256 * 0.597164283477939)) | = 107559 = 1A427(转16进制)
瓦片存储路径位于:
<EnvelopeN>
<XMin>12388034.5186361</XMin>
<YMin>3594413.03659627</YMin>
<XMax>12393881.9512999</XMax>
<YMax>3600795.52845809</YMax>
</EnvelopeN>
<TileOrigin xsi:type=”typens:PointN”>
<X>-20037508.3427892</X>
<Y>20037508.3430388</Y>
</TileOrigin>
<TileCols>256</TileCols>
<TileRows>256</TileRows>
<DPI>96</DPI>
<LODInfos xsi:type=”typens:ArrayOfLODInfo”>
<LODInfo xsi:type=”typens:LODInfo”>
<LevelID>0</LevelID>
<Scale>591658710.91</Scale>
<Resolution>156543.033928041</Resolution>
</LODInfo>
<LODInfo xsi:type=”typens:LODInfo”>
<LevelID>1</LevelID>
<Scale>295829355.45</Scale>
<Resolution>78271.5169640205</Resolution>
</LODInfo>
<LODInfo xsi:type=”typens:LODInfo”>
<LevelID>2</LevelID>
<Scale>147914677.73</Scale>
<Resolution>39135.7584820102</Resolution>
</LODInfo>
<LODInfo xsi:type=”typens:LODInfo”>
<LevelID>3</LevelID>
<Scale>73957338.86</Scale>
<Resolution>19567.8792410051</Resolution>
</LODInfo>
<LODInfo xsi:type=”typens:LODInfo”>
<LevelID>4</LevelID>
<Scale>36978669.43</Scale>
<Resolution>9783.93962050256</Resolution>
</LODInfo>
<LODInfo xsi:type=”typens:LODInfo”>
<LevelID>5</LevelID>
<Scale>18489334.72</Scale>
<Resolution>4891.96981025128</Resolution>
</LODInfo>
<LODInfo xsi:type=”typens:LODInfo”>
<LevelID>6</LevelID>
<Scale>9244667.36</Scale>
<Resolution>2445.98490512564</Resolution>
</LODInfo>
<LODInfo xsi:type=”typens:LODInfo”>
<LevelID>7</LevelID>
<Scale>4622333.68</Scale>
<Resolution>1222.99245256282</Resolution>
</LODInfo>
<LODInfo xsi:type=”typens:LODInfo”>
<LevelID>8</LevelID>
<Scale>2311166.84</Scale>
<Resolution>611.49622628141</Resolution>
</LODInfo>
<LODInfo xsi:type=”typens:LODInfo”>
<LevelID>9</LevelID>
<Scale>1155583.42</Scale>
<Resolution>305.748113140705</Resolution>
</LODInfo>
<LODInfo xsi:type=”typens:LODInfo”>
<LevelID>10</LevelID>
<Scale>577791.71</Scale>
<Resolution>152.874056570353</Resolution>
</LODInfo>
<LODInfo xsi:type=”typens:LODInfo”>
<LevelID>11</LevelID>
<Scale>288895.85</Scale>
<Resolution>76.4370282851763</Resolution>
</LODInfo>
<LODInfo xsi:type=”typens:LODInfo”>
<LevelID>12</LevelID>
<Scale>144447.93</Scale>
<Resolution>38.2185141425881</Resolution>
</LODInfo>
<LODInfo xsi:type=”typens:LODInfo”>
<LevelID>13</LevelID>
<Scale>72223.96</Scale>
<Resolution>19.1092570712941</Resolution>
</LODInfo>
<LODInfo xsi:type=”typens:LODInfo”>
<LevelID>14</LevelID>
<Scale>36111.98</Scale>
<Resolution>9.55462853564703</Resolution>
</LODInfo>
<LODInfo xsi:type=”typens:LODInfo”>
<LevelID>15</LevelID>
<Scale>18055.99</Scale>
<Resolution>4.77731426782352</Resolution>
</LODInfo>
<LODInfo xsi:type=”typens:LODInfo”>
<LevelID>16</LevelID>
<Scale>9028</Scale>
<Resolution>2.38865713391176</Resolution>
</LODInfo>
<LODInfo xsi:type=”typens:LODInfo”>
<LevelID>17</LevelID>
<Scale>4514</Scale>
<Resolution>1.19432856695588</Resolution>
</LODInfo>
<LODInfo xsi:type=”typens:LODInfo”>
<LevelID>18</LevelID>
<Scale>2257</Scale>
<Resolution>0.597164283477939</Resolution>
</LODInfo>
</LODInfos>
1.4. 瓦片加载测试-ArcMap
1.4.1. ArcMap链接磁盘文件夹
1.4.2. 文件夹所在磁盘路径
1.4.3. 拷贝该磁盘全路径字符串
1.4.4. 选中如下该图标
1.4.5. ArcMap中地图区域看到瓦片数据