ArcGIS Server9.3的瓦片数据迁移到ArcGIS Server10.3上
来源:互联网 发布:加工中心常用编程代码 编辑:程序博客网 时间:2024/06/09 23:38
实际场景:在ArcGIS Server9.3上,已经存在了一个瓦片服务(TileService),如何将其发布到ArcGIS Server10.3上。
一下是操作步骤:
1.复制ArcGIS Server9.3下的瓦片缓存文件。
这一步需要给到原始的待发布的数据,数据目录的结构如下:
2.修改conf.xml配置文件
原conf.xml配置文件格式化后如下:
<?xml version="1.0" encoding="utf-8" ?><CacheInfo xsi:type='typens:CacheInfo' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xs='http://www.w3.org/2001/XMLSchema' xmlns:typens='http://www.esri.com/schemas/ArcGIS/9.3'><TileCacheInfo xsi:type='typens:TileCacheInfo'> <SpatialReference xsi:type='typens:GeographicCoordinateSystem'> <WKT>GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433],AUTHORITY["EPSG",4326]]</WKT> <XOrigin>-400</XOrigin> <YOrigin>-400</YOrigin> <XYScale>11258999068426.2</XYScale> <ZOrigin>0</ZOrigin> <ZScale>1</ZScale> <MOrigin>-100000</MOrigin> <MScale>10000</MScale> <XYTolerance>8.98315284119521e-09</XYTolerance> <ZTolerance>2</ZTolerance> <MTolerance>2</MTolerance> <HighPrecision>true</HighPrecision> <LeftLongitude>-180</LeftLongitude> <WKID>4326</WKID> </SpatialReference> <TileOrigin xsi:type='typens:PointN'> <X>-400</X> <Y>400</Y> </TileOrigin> <TileCols>512</TileCols> <TileRows>512</TileRows> <DPI>96</DPI> <PreciseDPI>96</PreciseDPI> <LODInfos xsi:type='typens:ArrayOfLODInfo'> <LODInfo xsi:type='typens:LODInfo'><LevelID>0</LevelID><Scale>768000</Scale><Resolution>1.82742601838964e-03</Resolution></LODInfo> <LODInfo xsi:type='typens:LODInfo'><LevelID>1</LevelID><Scale>384000</Scale><Resolution>9.13713009194818e-04</Resolution></LODInfo> <LODInfo xsi:type='typens:LODInfo'><LevelID>2</LevelID><Scale>192000</Scale><Resolution>4.56856504597409e-04</Resolution></LODInfo> <LODInfo xsi:type='typens:LODInfo'><LevelID>3</LevelID><Scale>96000</Scale><Resolution>2.28428252298705e-04</Resolution></LODInfo> <LODInfo xsi:type='typens:LODInfo'><LevelID>4</LevelID><Scale>48000</Scale><Resolution>1.14214126149352e-04</Resolution></LODInfo> <LODInfo xsi:type='typens:LODInfo'><LevelID>5</LevelID><Scale>24000</Scale><Resolution>5.71070630746761e-05</Resolution></LODInfo> <LODInfo xsi:type='typens:LODInfo'><LevelID>6</LevelID><Scale>12000</Scale><Resolution>2.85535315373381e-05</Resolution></LODInfo> <LODInfo xsi:type='typens:LODInfo'><LevelID>7</LevelID><Scale>6000</Scale><Resolution>1.4276765768669e-05</Resolution></LODInfo> <LODInfo xsi:type='typens:LODInfo'><LevelID>8</LevelID><Scale>3000</Scale><Resolution>7.13838288433452e-06</Resolution></LODInfo> </LODInfos></TileCacheInfo><TileImageInfo xsi:type='typens:TileImageInfo'> <CacheTileFormat>JPEG</CacheTileFormat> <CompressionQuality>90</CompressionQuality> <Antialiasing>true</Antialiasing></TileImageInfo></CacheInfo>
做如下修改(主要是将9.3替换为10.3并且添加部分代码):
<?xml version="1.0" encoding="utf-8" ?><CacheInfo xsi:type='typens:CacheInfo' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xs='http://www.w3.org/2001/XMLSchema' xmlns:typens='http://www.esri.com/schemas/ArcGIS/10.3'><TileCacheInfo xsi:type='typens:TileCacheInfo'> <SpatialReference xsi:type='typens:GeographicCoordinateSystem'> <WKT>GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433],AUTHORITY["EPSG",4326]]</WKT> <XOrigin>-400</XOrigin> <YOrigin>-400</YOrigin> <XYScale>11258999068426.2</XYScale> <ZOrigin>0</ZOrigin> <ZScale>1</ZScale> <MOrigin>-100000</MOrigin> <MScale>10000</MScale> <XYTolerance>8.98315284119521e-09</XYTolerance> <ZTolerance>2</ZTolerance> <MTolerance>2</MTolerance> <HighPrecision>true</HighPrecision> <LeftLongitude>-180</LeftLongitude> <WKID>4326</WKID> </SpatialReference> <TileOrigin xsi:type='typens:PointN'> <X>-400</X> <Y>400</Y> </TileOrigin> <TileCols>512</TileCols> <TileRows>512</TileRows> <DPI>96</DPI> <PreciseDPI>96</PreciseDPI> <LODInfos xsi:type='typens:ArrayOfLODInfo'> <LODInfo xsi:type='typens:LODInfo'><LevelID>0</LevelID><Scale>768000</Scale><Resolution>1.82742601838964e-03</Resolution></LODInfo> <LODInfo xsi:type='typens:LODInfo'><LevelID>1</LevelID><Scale>384000</Scale><Resolution>9.13713009194818e-04</Resolution></LODInfo> <LODInfo xsi:type='typens:LODInfo'><LevelID>2</LevelID><Scale>192000</Scale><Resolution>4.56856504597409e-04</Resolution></LODInfo> <LODInfo xsi:type='typens:LODInfo'><LevelID>3</LevelID><Scale>96000</Scale><Resolution>2.28428252298705e-04</Resolution></LODInfo> <LODInfo xsi:type='typens:LODInfo'><LevelID>4</LevelID><Scale>48000</Scale><Resolution>1.14214126149352e-04</Resolution></LODInfo> <LODInfo xsi:type='typens:LODInfo'><LevelID>5</LevelID><Scale>24000</Scale><Resolution>5.71070630746761e-05</Resolution></LODInfo> <LODInfo xsi:type='typens:LODInfo'><LevelID>6</LevelID><Scale>12000</Scale><Resolution>2.85535315373381e-05</Resolution></LODInfo> <LODInfo xsi:type='typens:LODInfo'><LevelID>7</LevelID><Scale>6000</Scale><Resolution>1.4276765768669e-05</Resolution></LODInfo> <LODInfo xsi:type='typens:LODInfo'><LevelID>8</LevelID><Scale>3000</Scale><Resolution>7.13838288433452e-06</Resolution></LODInfo> </LODInfos></TileCacheInfo><TileImageInfo xsi:type='typens:TileImageInfo'> <CacheTileFormat>JPEG</CacheTileFormat> <CompressionQuality>90</CompressionQuality> <Antialiasing>true</Antialiasing></TileImageInfo><CacheStorageInfo xsi:type='typens:CacheStorageInfo'> <StorageFormat>esriMapCacheStorageModeExploded</StorageFormat> <PacketSize>0</PacketSize></CacheStorageInfo></CacheInfo>
3.新增conf.xml
然后,新增一个conf.cdi文件,并将conf.xml中的部分文件复制过过来,添加了坐标范围代码,就行了:
<?xml version="1.0" encoding="utf-8" ?><EnvelopeN xsi:type='typens:EnvelopeN' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xs='http://www.w3.org/2001/XMLSchema' xmlns:typens='http://www.esri.com/schemas/ArcGIS/10.3'> <XMin>120</XMin> <YMin>30</YMin> <XMax>122</XMax> <YMax>32</YMax> <SpatialReference xsi:type='typens:GeographicCoordinateSystem'> <WKT>GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433],AUTHORITY["EPSG",4326]]</WKT> <XOrigin>-400</XOrigin> <YOrigin>-400</YOrigin> <XYScale>11258999068426.2</XYScale> <ZOrigin>0</ZOrigin> <ZScale>1</ZScale> <MOrigin>-100000</MOrigin> <MScale>10000</MScale> <XYTolerance>8.98315284119521E-09</XYTolerance> <ZTolerance>2</ZTolerance> <MTolerance>2</MTolerance> <HighPrecision>true</HighPrecision> <LeftLongitude>-180</LeftLongitude> <WKID>4326</WKID> <LatestWKID>4326</LatestWKID> </SpatialReference></EnvelopeN>
上述代码中的XMin等是地图显示的范围,这个需要根据具体的图层范围给出,由于笔者的实例是上海,因此填的是上海的范围。
4.将数据导入ArcGIS Desktop10.3
最后的目录结构如下:
用ArcGIS Desktop10.3打开如下:
注意,上图中的Layers就是上上图中路径下的Layers文件夹,由于有了conf.xml和conf.cdi文件,使用ArcGIS Desktop10.3打开时就不是一个目录,而是图层了,效果如下:
5.最后发布
发布的方法和一般的ArcGIS发布服务没有太大区别,这里以保存为sd文件为例。唯一的不同如下:
添加一下之前的conf.xml的配置文件就行了,分析–预览。不过由于conf.xml需要实现复制到另一个位置,以便这里的选择。
以上,至于conf.xml和conf.cdi文件内的具体含义,笔者不细讲了。
欢迎提问。
0 0
- ArcGIS Server9.3的瓦片数据迁移到ArcGIS Server10.3上
- ArcGIS Server9.3安装
- arcgis server10.3 WFS数据查询过滤器filter的问题
- ArcGIS Server9.3问题汇总
- ArcGIS Server9.3 forjava 安装
- ArcGIS Server9.3创建WMS
- ArcGIS Server9.3问题汇总
- Silverlight3与ArcGIS Server9.3的本地服务配置问题
- ArcGIS Server9.3完整清晰安装流程
- arcgis server9.3 for java 安装
- ArcGIS Server9.3完整清晰安装流程
- .net中 ArcGIS Server9.3安装步骤
- ArcGIS server9.3实现根据坐标定位
- ArcGIS Server9.3 AJAX系列(一)之CallbackResults
- ArcGIS Server9.3 AJAX系列(二)Client CallBack解决方案
- Flex3与arcgis server9.3开发之配置
- ArcGIS Server9.3 AJAX系列(一)之CallbackResults
- ArcGIS Server9.3 AJAX系列(二)Client CallBack解决方案
- angularjs中post请求进行跨域
- 贝叶斯推断及其互联网应用(二):过滤垃圾邮件
- Intel Code Challenge Final Round (Div. 1 + Div. 2, Combined) -- C. Ray Tracing(STL乱搞)
- ConcurrentModificationException异常以及iterator迭代器的使用原理
- Subscriber class .NewsFragment and its super classes have no public methods
- ArcGIS Server9.3的瓦片数据迁移到ArcGIS Server10.3上
- regionprops统计被标记的区域的面积分布,显示区域总数。
- ubuntu安装nvidia官方驱动(安装CUDA7.5之后,找不到TITAN显卡的解决方法)
- JAVASE之Object
- 105.Copy List with Random Pointer-复制带随机指针的链表(中等题)
- Linux环境下的GCC工具链详解(二)
- LeetCode[173] Binary Search Tree Iterator
- [os]pkg 解包和打包
- layer弹出框