~ubuntu-branches/debian/sid/osgearth/sid

« back to all changes in this revision

Viewing changes to tests/graticule.earth

  • Committer: Bazaar Package Importer
  • Author(s): Pirmin Kalberer
  • Date: 2011-07-14 22:13:36 UTC
  • Revision ID: james.westby@ubuntu.com-20110714221336-94igk9rskxveh794
Tags: upstream-2.0+dfsg
ImportĀ upstreamĀ versionĀ 2.0+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!--
 
2
osgEarth Sample
 
3
 
 
4
Combines a model overlay with inline geometry to display a map 10 degree graticule.
 
5
-->
 
6
 
 
7
<map name="Graticule" type="geocentric" version="2">
 
8
 
 
9
    <options>
 
10
        <lighting>false</lighting>
 
11
    </options>
 
12
    
 
13
    <image name="world" driver="gdal">
 
14
        <url>../data/world.tif</url>
 
15
    </image>
 
16
    
 
17
    <model name="graticule 10deg" driver="feature_geom" overlay="true">
 
18
        
 
19
        <!-- The maximum angle between verts - limits the tessellation granularity. -->
 
20
        <max_granularity>2.5</max_granularity>
 
21
        
 
22
        <!-- Appearance details -->
 
23
        <styles>
 
24
            <style type="text/css">
 
25
                default {
 
26
                   stroke: #ffffff;
 
27
                   stroke-opacity: 0.5;
 
28
                   stroke-width: 3.5;
 
29
                }                    
 
30
            </style>
 
31
        </styles>
 
32
 
 
33
            <!-- Define an inline geometry in WKT format.
 
34
                     See: http://en.wikipedia.org/wiki/Well-known_text#Geometric_objects -->
 
35
            <features driver="ogr">
 
36
                        <geometry>
 
37
                MULTILINESTRING(
 
38
                    (-180   0, -90   0, 0   0, 90   0, 180   0),
 
39
                    (-180  10, -90  10, 0  10, 90  10, 180  10), 
 
40
                    (-180  20, -90  20, 0  20, 90  20, 180  20), 
 
41
                    (-180  30, -90  30, 0  30, 90  30, 180  30), 
 
42
                    (-180  40, -90  40, 0  40, 90  40, 180  40), 
 
43
                    (-180  50, -90  50, 0  50, 90  50, 180  50), 
 
44
                    (-180  60, -90  60, 0  60, 90  60, 180  60), 
 
45
                    (-180  70, -90  70, 0  70, 90  70, 180  70), 
 
46
                    (-180  80, -90  80, 0  80, 90  80, 180  80), 
 
47
                    (-180 -10, -90 -10, 0 -10, 90 -10, 180 -10), 
 
48
                    (-180 -20, -90 -20, 0 -20, 90 -20, 180 -20), 
 
49
                    (-180 -30, -90 -30, 0 -30, 90 -30, 180 -30), 
 
50
                    (-180 -40, -90 -40, 0 -40, 90 -40, 180 -40), 
 
51
                    (-180 -50, -90 -50, 0 -50, 90 -50, 180 -50), 
 
52
                    (-180 -60, -90 -60, 0 -60, 90 -60, 180 -60), 
 
53
                    (-180 -70, -90 -70, 0 -70, 90 -70, 180 -70), 
 
54
                    (-180 -80, -90 -80, 0 -80, 90 -80, 180 -80),
 
55
                    
 
56
                    (   0  80,   0 -80), (  180  80,  180 -80),
 
57
                    (  10  80,  10 -80), (  -10  80,  -10 -80),
 
58
                    (  20  80,  20 -80), (  -20  80,  -20 -80),
 
59
                    (  30  80,  30 -80), (  -30  80,  -30 -80),
 
60
                    (  40  80,  40 -80), (  -40  80,  -40 -80),
 
61
                    (  50  80,  50 -80), (  -50  80,  -50 -80),
 
62
                    (  60  80,  60 -80), (  -60  80,  -60 -80),
 
63
                    (  70  80,  70 -80), (  -70  80,  -70 -80),
 
64
                    (  80  80,  80 -80), (  -80  80,  -80 -80),
 
65
                    (  90  80,  90 -80), (  -90  80,  -90 -80),
 
66
                    ( 100  80, 100 -80), ( -100  80, -100 -80),
 
67
                    ( 110  80, 110 -80), ( -110  80, -110 -80),
 
68
                    ( 120  80, 120 -80), ( -120  80, -120 -80),
 
69
                    ( 130  80, 130 -80), ( -130  80, -130 -80),
 
70
                    ( 140  80, 140 -80), ( -140  80, -140 -80),
 
71
                    ( 150  80, 150 -80), ( -150  80, -150 -80),
 
72
                    ( 160  80, 160 -80), ( -160  80, -160 -80),
 
73
                    ( 170  80, 170 -80), ( -170  80, -170 -80)
 
74
                )                
 
75
                        </geometry>
 
76
                </features>
 
77
        
 
78
    </model>
 
79
  
 
80
</map>