forked from gwaldron/osgearth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
feature_custom_filters.earth
52 lines (40 loc) · 1.62 KB
/
feature_custom_filters.earth
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!--
osgEarth Sample
Run this example with:
osgearth_featurefilter feature_custom_features.earth
Shows how you can use a custom FeatureFilter, even one that is defined in an Earth File!
-->
<map name="Feature Custom Filter Demo" type="geocentric" version="2">
<image name="world" driver="gdal">
<url>../data/world.tif</url>
</image>
<model name="cities" driver="feature_geom">
<features name="cities" driver="ogr">
<url>../data/world.shp</url>
<!--Define a ChangeAttributeFilter, which is defined in the osgearth_featurefilter example. This will change the cntry_name of all countries to osgEarthLand.-->
<filters>
<change_attribute key="cntry_name" value="osgEarthLand"/>
</filters>
</features>
<styles>
<style type="text/css">
cities {
text-provider: annotation;
text-content: [cntry_name];
text-priority: [pop_cntry];
text-halo: #3f3f7f;
text-align: center_center;
text-declutter: true;
}
</style>
</styles>
</model>
<options lighting="false"/>
<screen_space_layout>
<out_animation_time> 0.0 </out_animation_time>
<in_animation_time> 0.25 </in_animation_time>
<min_animation_scale> 0.45 </min_animation_scale>
<min_animation_alpha> 0.35 </min_animation_alpha>
<sort_by_priority> true </sort_by_priority>
</screen_space_layout>
</map>