其他分享
首页 > 其他分享> > osgEarth加载二维地图

osgEarth加载二维地图

作者:互联网

一、原理

首先设置地图为二维模式

<map name="ArcGIS Online" type="projected" version="2">

然后在options里面设置投影方式为Equirectangular projection(ERP)

<profile>eqc-wgs84</profile> 

参考博客 

二、地图代码

clear_2D.earth

 

<!--设置二维模式-->
<map name="ArcGIS Online" type="projected" version="2">
        
    <image name="arcgis-world-imagery" driver="arcgis">
        <url>http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/</url>
		<nodata_image>http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/100/0/0.jpeg</nodata_image>
		<cache_policy usage="read_write"/>
    </image>
      
    <image name="arcgis-transportation" driver="arcgis" enabled="false">
        <url>http://services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Transportation/MapServer</url>
		<cache_policy usage="read_write"/>
    </image>
  
    <image name="arcgis-reference-overlay" driver="arcgis" enabled="false">
        <url>http://services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places_Alternate/MapServer</url>
		<cache_policy usage="read_write"/>
    </image>


    <options>
        <!--Specify where to cache the data-->
      <terrain driver="rex"/>
      <profile>eqc-wgs84</profile>
        <cache type="filesystem">
            <path>./data</path>
        </cache>
    </options>
	
</map>

三、结果展示

 

 近处也可以清晰看到

 

标签:arcgisonline,http,MapServer,rest,二维,osgEarth,services,World,加载
来源: https://blog.csdn.net/ljjjjjjjjjjj/article/details/119359455