ArcMap and ArcGIS Pro loaded Baidu map

  Earlier released two plug-ArcBruTileBaidu I ArcBruTile developed for ArcMap to load Baidu map, on the online comments and reaction is not bad, there are two university students actually found myself to Baidu search! Articles and technical presentations have been copied and pasted on the network many times, the development of so many people did not use the digital city and GIS platform software system, which was a tool used to feel a little bit.

      After all, only a staple of interests, the plug-in upgrades and maintenance is not very timely, also led to a lot of demand did not keep up, I'm sorry you the user.

ArcBruTileBaidu plug-in has the following major drawbacks:

1. Please install the package to install, the probability is great because the environment does not support the installation will not succeed!

2. Because it is ArcGIS Add-In development for ArcMap version requirements are particularly high, must be recompiled for each version of a plug-in is simply impossible to compile each version, I was still using a virtual machine, install two versions, ArcMap 10.0 and 10.1 and, therefore, basically only supports these two, but also often incompatibility issues.

3. B / S systems are most afraid of ActiveX, C / S systems are most afraid of COM, due ArcGISAdd-In Development COM components used, whenever they crash, you sometimes are difficult to debug problems.

4. Because it is a local installation, configuration parameters are downloaded locally, or parameters change Baidu map updates, it will cause the program to crash or map it out.

5. Because at that time to play, written procedures are not robust, often problems.

 

       This thing is great demand, spur me has been upgraded or reconstructed, but I'm too lazy, has been dragging. When recently loaded using ArcGISPro world map of WMTS service, found that offset a little worse, just depth study and analysis under ArcGIS Pro loaded WMTS service principles and mechanisms, so the idea ArcBruTileBaidu plug into the adapter as a standard Baidu map the WMTS services, which can effectively solve the above problems.

1. Users no longer have to install any plug-ins, you can directly use the online service.

2. Mom no longer have to worry about different versions of ArcMap, and it also supports the latest ArcGIS Pro.

3. ArcMap and load support gifted ArcGISPro original WMTS service, performance, and will not collapse.

4. Using the online mode, upgrading and parameter changes at any time.

The WMTS by the OGC standard services, other B / S system can be invoked directly (this feature is not currently open)

Cut the crap, just start talking about using the tutorial it

 1. Open the Add ArcGIS Pro WMTS Service

  Add WMTS Service

2.     Enter WMTS ability to document address of the service:

http://demo.cxgis.com/wmts/baidu/vec?request=getcapabilities

Enter the service address WMTS

3. Add a layer Open to add WMTS service, access to one of the layers, you can see Baidu_Vec_Map , this is an electronic map, right-layer is added to the current map, the left side of the TOC will show the layer

Baidu_Vec_Map Layer

4. Verify coordinates Baidu map . 3 at level no less tile, thus displaying the whole map, initially there is no map, several amplification stages can occur maps. This service is strictly based on the coordinate conversion Baidu map, the map coordinates of each point is very precise, we enter Baidu coordinate origin [ 0 , 0 ], you can see the positioning is correct.

[0,0] Baidu map locating the origin of coordinates

Baidu coordinate positioning verification 5. try. I love **, *** positioning we look at whether the right thing to do. Latitude and longitude, for example, about 116.404,39.915 , after conversion to obtain plane coordinates:

varprojection =new BMap.MercatorProjection();var point = projection.lngLatToPoint(new BMap.Point(116.404, 39.915));;

12958175, 4825923.77,我们输入该坐标定位过去,Perfect!

BJ

也就是说利用这个坐标系在上面进行数据采集和标绘,至少更百度地图肯定是可以百分百精确匹配的

6. 我们和天地图及ESRI的地图进行一个对比看看偏差如何。

左边是百度地图,有便是Esri的Topographic地图

 

左边是天地图,右边是百度地图

 

放大后会发现坐标还是偏差的

由于百度地图是有自己的偏移算法的,因此任何投影都是无法一次性解决所有问题的,这也是商业使然,中国人都不喜欢按标准来搞,没办法!

但是本方法能够解决在百度地图坐标系统下能够非常精确的统一.

亲测在ArcMap 10.6中也可以,截图忘记截了!

 

 

 

Guess you like

Origin www.cnblogs.com/cehui0303/p/10990508.html