forked from gwaldron/osgearth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscene_clamping.earth
135 lines (123 loc) · 4.8 KB
/
scene_clamping.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<!--
osgEarth Sample - Annotations
-->
<map name="Scene clamping test">
<xi:include href="readymap_imagery.xml"/>
<xi:include href="readymap_elevation.xml"/>
<DebugImage enabled="false"/>
<Viewpoints time="0.1">
<viewpoint name="Circles">
<heading>25.2721</heading>
<pitch>-24.7961</pitch>
<range>22653.9m</range>
<long>-159.6077378781463</long>
<lat>22.08047563003597</lat>
<height>1057.80545252189</height>
<srs>+proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs </srs>
</viewpoint>
</Viewpoints>
<annotations name="Annotations: LocalGeometryNode">
<circle name="Circle clamped directly to the ground">
<position lat="22.074" long="-159.606"/>
<radius value="1.2" units="km"/>
<style type="text/css">
stroke: #ffffff;
stroke-width: 2px;
altitude-binding: vertex;
render-depth-offset: true;
</style>
</circle>
<label text="WHITE = clamped to ground" lat="22.074" long="-159.5">
<style>
text-size: 24;
text-halo: #000;
</style>
</label>
<circle name="Circle clamped with an altitude offset">
<position lat="22.074" long="-159.606" hat="1000"/>
<radius value="1.2" units="km"/>
<style type="text/css">
stroke: #ffff00;
stroke-width: 2px;
altitude-binding: vertex;
</style>
</circle>
<label text="YELLOW = clamped relative to ground" lat="22.17" long="-159.606"/>
<circle name="Circle clamped above the ground by its centroid">
<position lat="22.074" long="-159.606" hat="2000"/>
<radius value="1.2" units="km"/>
<style type="text/css">
stroke: #00ffff;
stroke-width: 2px;
altitude-binding: centroid;
</style>
</circle>
<label text="CYAN = clamped relative to ground by centroid" lat="22.074" long="-159.7"/>
<local_geometry name="Local Geometry tessellated and clamped">
<geometry>
LINESTRING(0 0, 25000 0, 25000 25000, 0 25000, 0 0);
</geometry>
<position lat="22.078" long="-159.602"/>
<style type="text/css">
stroke: #ff00ff;
stroke-width: 3px;
stroke-tessellation-size: 500m;
altitude-binding: vertex;
render-depth-offset: true;
</style>
</local_geometry>
</annotations>
<annotations name="Annotations: FeatureNode">
<feature name="Feature clamped to ground">
<srs>wgs84</srs>
<geometry>
LINESTRING(-159.606 22.074, -159.606 22.5)
</geometry>
<style type="text/css">
stroke: #ffffff;
stroke-width: 3;
stroke-tessellation-size: 500m;
altitude-clamping: terrain;
altitude-technique: scene;
render-depth-offset: true;
</style>
</feature>
<feature name="Feature clamped relative to ground">
<srs>wgs84</srs>
<geometry>
LINESTRING(-159.606 22.074 1000, -159.606 22.5 1000)
</geometry>
<style type="text/css">
stroke: #ffff00;
stroke-width: 3;
stroke-tessellation-size: 500m;
altitude-clamping: relative;
altitude-technique: scene;
</style>
</feature>
</annotations>
<annotations name="Annotations: Extrusion">
<circle name="Circle clamped and extruded">
<position lat="21.974" long="-159.606"/>
<radius value="1.2" units="km"/>
<style type="text/css">
fill: #8f4f107f;
stroke: #ffff00;
stroke-width: 1px;
altitude-technique: scene;
altitude-binding: vertex;
extrusion-height: 500;
</style>
</circle>
</annotations>
<annotations name="PlaceNode">
<place name="Placemark" text="Placemark">
<position lat="22.074" long="-159.606"/>
<icon>../data/placemark32.png</icon>
<style type="text/css">
text-declutter: true;
text-halo: #777;
</style>
</place>
</annotations>
</map>