在使用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>-400XOrigin> <YOrigin>-400YOrigin> <XYScale>11258999068426.24XYScale> <ZOrigin>-100000ZOrigin> <ZScale>10000ZScale> <MOrigin>-100000MOrigin> <MScale>10000MScale> <XYTolerance>8.9831528411952133e-009XYTolerance> <ZTolerance>0.001ZTolerance> <MTolerance>0.001MTolerance> <HighPrecision>trueHighPrecision> <LeftLongitude>-180LeftLongitude> <WKID>4490WKID> <LatestWKID>4490LatestWKID> SpatialReference> -<TileOrigin xsi:type="typens:PointN"> <X>-180X> <Y>90Y> TileOrigin> <TileCols>256TileCols> <TileRows>256TileRows> <DPI>96DPI> -<LODInfos xsi:type="typens:ArrayOfLODInfo"> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>0LevelID> <Scale>295497593.05874997Scale> <Resolution>0.70312500000000011Resolution> LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>1LevelID> <Scale>147748796.52937579Scale> <Resolution>0.35156250000000194Resolution> LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>2LevelID> <Scale>73874398.264687896Scale> <Resolution>0.17578125000000097Resolution> LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>3LevelID> <Scale>36937199.132343948Scale> <Resolution>0.087890625000000486Resolution> LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>4LevelID> <Scale>18468599.566171981Scale> <Resolution>0.043945312500000264Resolution> LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>5LevelID> <Scale>9234299.7830859888Scale> <Resolution>0.021972656250000125Resolution> LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>6LevelID> <Scale>4617149.8915429944Scale> <Resolution>0.010986328125000062Resolution> LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>7LevelID> <Scale>2308574.9457714972Scale> <Resolution>0.0054931640625000312Resolution> LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>8LevelID> <Scale>1154287.4728857479Scale> <Resolution>0.0027465820312500139Resolution> LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>9LevelID> <Scale>577143.73644287419Scale> <Resolution>0.0013732910156250076Resolution> LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>10LevelID> <Scale>288571.86822143709Scale> <Resolution>0.00068664550781250379Resolution> LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>11LevelID> <Scale>144285.9341107186Scale> <Resolution>0.00034332275390625206Resolution> LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>12LevelID> <Scale>72142.967055359273Scale> <Resolution>0.00017166137695312595Resolution> LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>13LevelID> <Scale>36071.483527679637Scale> <Resolution>8.5830688476562974e-005Resolution> LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>14LevelID> <Scale>18035.741763839818Scale> <Resolution>4.2915344238281487e-005Resolution> LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>15LevelID> <Scale>9017.8708819199092Scale> <Resolution>2.1457672119140744e-005Resolution> LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>16LevelID> <Scale>4508.9354409599546Scale> <Resolution>1.0728836059570372e-005Resolution> LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>17LevelID> <Scale>2254.4677204799768Scale> <Resolution>5.364418029785185e-006Resolution> LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>18LevelID> <Scale>1127.2338602399891Scale> <Resolution>2.6822090148925942e-006Resolution> LODInfo> -<LODInfo xsi:type="typens:LODInfo"> <LevelID>19LevelID> <Scale>563.61693011999444Scale> <Resolution>1.3411045074462967e-006Resolution> LODInfo> LODInfos> <PreciseDPI>96PreciseDPI> TileCacheInfo>
