Osg-OsgEarth使用“.earth”文件加载数据,加载在线地图、shp矢量数据、tms数据、tif数据

长江三角洲科学数据中心](http://nnu.geodata.cn:8008/index.html

1
2
3
4
5
6
<map>   
<image driver="tms" index="DOMT_Local" max_level ="19" min_level = "0">
   <cache_policy usage="none"/>
   <url>http://nnu.geodata.cn:8009/DOM/tms.xml</url>
</image>     
</map>

 

 矢量数据(地级城市驻地、国界线、经纬网、全国县级统计数据、省会城市、线状省界、中国地州界、中国湖泊、主要公路、主要河流)

<map name="WMS Radar returns" version="2">  
    <image name="t1" driver="tms"
        <url>world10/tms.xml</url> 
    </image> 
 
    <model name="river" driver="feature_geom">
        <features name="heliu" driver="ogr">
            <url>shp/heliu.shp</url>
        </features>       
        <styles>
            <style type="text/css">
                states {
                   stroke:            #ff0000;
                   render-depth-test: false;
                   render-clip-plane: 0;
                   render-order:      1;
                }                   
            </style>
        </styles>       
    </model>
     
    <model name="boundaries" driver="feature_geom">
        <features name="china" driver="ogr">
            <url>shp/china.shp</url>
        </features>       
        <styles>
            <style type="text/css">
                states {
                   stroke:            #00ff00;
                   render-depth-test: false;
                   render-clip-plane: 0;
                   render-order:      1;
                }                   
            </style>
        </styles>       
    </model>
     
    <model name="route" driver="feature_geom">
        <features name="gonglu" driver="ogr">
            <url>shp/gonglu.shp</url>
        </features>       
        <styles>
            <style type="text/css">
                states {
                   stroke:            #0000ff;
                   render-depth-test: false;
                   render-clip-plane: 0;
                   render-order:      1;
                }                   
            </style>
        </styles>       
    </model> 
     
    <model name="lake" driver="feature_geom">
        <features name="hupo" driver="ogr">
            <url>shp/hupo.shp</url>
        </features>       
        <styles>
            <style type="text/css">
                states {
                   stroke:            #ffff00;
                   render-depth-test: false;
                   render-clip-plane: 0;
                   render-order:      1;
                }                   
            </style>
        </styles>       
    </model>
   
     
</map>

 tif数据

1
2
3
4
5
6
7
8
<map name="WorldMap" type="projected" version="2"
    <image name="t1" driver="gdal"
        <url>world.tif</url> 
    </image> 
    <options>
    <profile>eqc-wgs84</profile>
    </options>
</map>

 

 

ArcGIS(我电脑上未实现效果,原因不明)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<map name="ArcGIS Online" type="geocentric" 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_Imagery/MapServer/tile/0/0/0.jpeg</nodata_image>
    </image>
    <image name="arcgis-transportation" driver="arcgis">
         <url>http://services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Transportation/MapServer</url>
  </image>
    <image name="arcgis-reference-overlay" driver="arcgis">
        <url>http://services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places_Alternate/MapServer</url>
    </image>
    <options>
        <lighting>false</lighting>
          <terrain>
            <min_tile_range_factor>9</min_tile_range_factor>
        </terrain>
     </options>
</map>

  

 

posted on   疯狂delphi  阅读(2151)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 单元测试从入门到精通
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
历史上的今天:
2018-05-17 QT-提示“database not open”
2016-05-17 剪切板-监视剪贴板

导航

统计

点击右上角即可分享
微信分享提示