ArcGIS切片服务获取切片方案xml文件(conf.xml)

博客 分享
0 234
张三
张三 2023-04-20 18:27:30
悬赏:0 积分 收藏

ArcGIS切片服务获取切片方案xml文件(conf.xml)

在使用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>

 

posted @ 2023-04-20 17:47  孤草之魂  阅读(0)  评论(0编辑  收藏  举报
回帖
    张三

    张三 (王者 段位)

    921 积分 (2)粉丝 (41)源码

     

    温馨提示

    亦奇源码

    最新会员