首页 > 其他 > 详细

osgearth使用prjected投影

时间:2014-10-11 11:31:36      阅读:568      评论:0      收藏:0      [点我收藏+]

In projected mode, you have to specify a map profile (i.e. a map projection). You also need to tell osgEarth the spatial reference of your feature data if it differs from that of the map. 
For example: 
<map name="demo" type="projected" version="2">
        <options>
                <profile>global-mercator</profile>
        </options>
        <image name="world" driver="gdal">
                <url>../data/world.tif</url>
        </image>

   <elevation driver="tms" name="ReadyMap.org-Elevation">

                <url>../data/elevation/tms.xml</url>

        </elevation>
        <model name="polygon" driver="feature_geom" overlay="true">
                <features name="data" driver="ogr">
                        <geometry>
                                POLYGON((-74.096 40.332, -74.096 42.386, -70.988 42.386, -70.988 40.332)) 
                        </geometry>
                        <profile srs="wgs84"/>
                </features>
        </model>
</map>

osgearth使用prjected投影

原文:http://www.cnblogs.com/coolbear/p/4018570.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!