在使用ArcGIS進行影像、地形等切片時,往往需要保持一致的切片方案才能夠更好的載入地圖服務。
本文介紹如何獲取已經發布好的ArcGIS服務的切片方案xml檔案。
當然切片xml檔案還可以透過工具Generate Tile Cache Tiling Scheme生成,具體操作可參考相關文件,本文不做說明。
示例服務地址:http://localhost:6080/arcgis/rest/services/test/globaltdt5/MapServer
有兩種方式獲取切片方案xml檔案:
1、如果能夠直接登入到釋出服務的ArcGIS伺服器,可以透過伺服器對應的資料夾找到conf.xml檔案
檔案路徑(具體路徑根據安裝情況確定):D:\arcgisserver\directories\arcgiscache\test_globaltdt5\Layers\Conf.xml
2、如果只是提供了一個服務訪問地址,無法登入到指定機器,可透過url獲取:
http://localhost:6080/arcgis/rest/directories/arcgiscache/test_globaltdt5/Layers/Conf.xml
說明:rest/directories/arcgiscache對應ArcGIS伺服器上的arcgiscache目錄:
test_globaltdt5為目錄+服務名稱:
Layers\Conf.xml為服務目錄下的固定名稱
注意:不建議使用多種不同切片方案,尤其做三維繫統,不論是基於cesium還是基於ArcGIS,建議使用ogc標準的切片方案。
目前大多數都是使用以下切片方案,建議使用該方案(ogc_2000_start_0.xml):
<?xml version="1.0" encoding="UTF-8"?> -<TileCacheInfo xmlns:typens="http://www.esri.com/schemas/ArcGIS/10.5" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="typens:TileCacheInfo"> -<SpatialReference xsi:type="typens:GeographicCoordinateSystem"> <WKT>GEOGCS["GCS_China_Geodetic_Coordinate_System_2000",DATUM["D_China_2000",SPHEROID["CGCS2000",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433],AUTHORITY["EPSG",4490]]</WKT> <XOrigin>-400</XOrigin> <YOrigin>-400</YOrigin> <XYScale>11258999068426.24</XYScale> <ZOrigin>-100000</ZOrigin> <ZScale>10000</ZScale> <MOrigin>-100000</MOrigin> <MScale>10000</MScale> <XYTolerance>8.9831528411952133e-009</XYTolerance> <ZTolerance>0.001</ZTolerance> <MTolerance>0.001</MTolerance> <HighPrecision>true</HighPrecision> <LeftLongitude>-180</LeftLongitude> <WKID>4490</WKID> <LatestWKID>4490</LatestWKID> </SpatialReference> -<TileOrigin xsi:type="typens:PointN"> <X>-180</X> <Y>90</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>295497593.05874997</Scale> <Resolution>0.70312500000000011</Resolution> </LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>1</LevelID> <Scale>147748796.52937579</Scale> <Resolution>0.35156250000000194</Resolution> </LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>2</LevelID> <Scale>73874398.264687896</Scale> <Resolution>0.17578125000000097</Resolution> </LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>3</LevelID> <Scale>36937199.132343948</Scale> <Resolution>0.087890625000000486</Resolution> </LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>4</LevelID> <Scale>18468599.566171981</Scale> <Resolution>0.043945312500000264</Resolution> </LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>5</LevelID> <Scale>9234299.7830859888</Scale> <Resolution>0.021972656250000125</Resolution> </LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>6</LevelID> <Scale>4617149.8915429944</Scale> <Resolution>0.010986328125000062</Resolution> </LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>7</LevelID> <Scale>2308574.9457714972</Scale> <Resolution>0.0054931640625000312</Resolution> </LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>8</LevelID> <Scale>1154287.4728857479</Scale> <Resolution>0.0027465820312500139</Resolution> </LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>9</LevelID> <Scale>577143.73644287419</Scale> <Resolution>0.0013732910156250076</Resolution> </LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>10</LevelID> <Scale>288571.86822143709</Scale> <Resolution>0.00068664550781250379</Resolution> </LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>11</LevelID> <Scale>144285.9341107186</Scale> <Resolution>0.00034332275390625206</Resolution> </LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>12</LevelID> <Scale>72142.967055359273</Scale> <Resolution>0.00017166137695312595</Resolution> </LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>13</LevelID> <Scale>36071.483527679637</Scale> <Resolution>8.5830688476562974e-005</Resolution> </LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>14</LevelID> <Scale>18035.741763839818</Scale> <Resolution>4.2915344238281487e-005</Resolution> </LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>15</LevelID> <Scale>9017.8708819199092</Scale> <Resolution>2.1457672119140744e-005</Resolution> </LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>16</LevelID> <Scale>4508.9354409599546</Scale> <Resolution>1.0728836059570372e-005</Resolution> </LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>17</LevelID> <Scale>2254.4677204799768</Scale> <Resolution>5.364418029785185e-006</Resolution> </LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>18</LevelID> <Scale>1127.2338602399891</Scale> <Resolution>2.6822090148925942e-006</Resolution> </LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>19</LevelID> <Scale>563.61693011999444</Scale> <Resolution>1.3411045074462967e-006</Resolution> </LODInfo> </LODInfos> <PreciseDPI>96</PreciseDPI> </TileCacheInfo>