您的位置:首页 > 其它

[原][译][osgearth]Model Source Drivers模型驱动源(OE官方文档翻译)

2017-02-09 13:47 525 查看
ModelSource 是一个能生成OpenSceneGraph节点的驱动(driver)

osgEarth使用ModelSources显示矢量特征(feature)数据和加载和显示外部3d模型

Feature Geometry(特征的几何模型插件)

这个插件使用样式表将矢量特性数据绘制成OSG几何模型

使用举例:

1 <model driver="feature_geom">
2     <features driver="ogr">
3         <url>world.shp</url>
4     </features>
5     <styles>
6         <style type="text/css">
7             default {
8                 stroke:       #ffff00;
9                 stroke-width: 2;
10             }
11         </style>
12     </styles>
13     <fading duration="1.0"/>
14 </model>


属性

geo_interpolation

如何插入地理线;选项great_circle还是rhumb_line

instancing

给顶点替换模型,是否使用GL draw-instanced(默认是false

共享属性:

所有feature-rendering驱动都共享的属性

styles

样式表 (see: Symbology Reference)

layout

分页数据布局(see: Features & Symbology)

cache_policy

缓存策略 (see: Caching)

fading

衰退 (see: Fading)

feature_name

特征的属性名称的名字

feature_indexing

是否做功能查询的索引,默认false

lighting

是否在这一层设置照明覆盖(true/false)

max_granularity

在全球细分线路中设置临界值

shader_policy

着色器选项 (see: Shader Policy)

use_texture_arrays

如果你的卡片支持,是否给墙和屋顶设置纹理数组

可以看看“feature_rasterize.earth”文件
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: