forked from gwaldron/osgearth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeature_gpx.earth
44 lines (32 loc) · 1.15 KB
/
feature_gpx.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
<!--
osgEarth Sample
This one demonstrates how to read feature data from a GPX file, or any other file with multiple layers.
Note: You must have GDAL built with Expat support to read GPX files
-->
<map name="Feature GPX Demo" type="geocentric" version="2">
<image name="world" driver="gdal">
<url>../data/world.tif</url>
</image>
<model name="fells loop" driver="feature_geom">
<!-- Configure the OGR feature driver to read the gpx file -->
<features name="routes" driver="ogr">
<url>../data/fells_loop.gpx</url>
<!-- Specify the layer index-->
<layer>1</layer>
</features>
<!-- Appearance details -->
<styles>
<style type="text/css">
routes {
stroke: #ffff00;
}
</style>
</styles>
<lighting>false</lighting>
</model>
<external>
<viewpoints>
<viewpoint name="Fells Loop" heading="0" height="0" lat="42.43095" long="-71.1076" pitch="-90" range="5000"/>
</viewpoints>
</external>
</map>