osgEarth矢量属性过滤案例 40. feature_custom_filters.earth

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_24934183/article/details/78580252

osgEarth矢量属性修改案例 40. feature_custom_filters.earth

1) 案例概述

矢量属性修改案例。

2) 软件环境

osgEarth:官方代码库最新代码地址:www.github.com/gwaldron/osgearth

osgEarth编辑器:SXEarth2.8及以上,下载地址:www.sxsim.com

3) 编辑测试

属性过滤:左侧场景面板,选中矢量层cities,在右侧属性面板,过滤器组,包含了改变属性过滤,修改cntry_name属性为osgEarthLand,界面所有图标,改为osgEarthLandfeature_labels_script.earth案例,采用脚本方式,可以实现同样的效果。

4) 优先级

选中矢量层cities属性面板,关闭“文字-清理”项,会显示所有标签,开启后,自动清理重叠的标签,显示优先级高的图标,“文字-优先级”属性配置标签显示优先级。



猜你喜欢

转载自blog.csdn.net/qq_24934183/article/details/78580252