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

« back to all changes in this revision

Viewing changes to tests/arc_preemptive.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
This map shows how to use the preemptive loading mode of osgearth. Preemptive
 
5
mode prioritizes the highest visible imagery LOD, skipping intermediate
 
6
levels. It also demonstrates per-layer resource allocation. Preemptive mode
 
7
uses a pool of loading threads to fetch tiles. You can use "loading_weight"
 
8
to give some layers more threads than others.
 
9
 
 
10
Please note that use of ESRI's free maps is subject to certain restrictions:
 
11
http://resources.esri.com/arcgisonlineservices/index.cfm?fa=content
 
12
-->
 
13
 
 
14
<map name="ESRI Imagery and Roads" type="geocentric" version="2">        
 
15
 
 
16
    <!-- Set a "preemptive" loading policy, and set the number of
 
17
         loading threads to use. -->
 
18
    <options>
 
19
        <terrain>
 
20
            <loading_policy mode="preemptive" loading_threads_per_core="3"/>
 
21
        </terrain>
 
22
    </options>
 
23
    
 
24
    <!-- loading_weight specifies the relative number of threads
 
25
         to use for this particular layer.  For heightfield layers,
 
26
         the highest specified loading_weight for all heightfield layers
 
27
         will be used.  For imagery layers, a separate group of threads
 
28
         will be allocated to handle each layer. -->
 
29
         
 
30
    <image name="arcgisonline esri imagery" driver="arcgis" loading_weight="1">
 
31
        <url>http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer</url>
 
32
        <nodata_image>http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer/tile/100/0/0.jpeg</nodata_image>
 
33
                <compress_textures>true</compress_textures>
 
34
    </image>
 
35
      
 
36
      
 
37
    <!-- We give the transportation layer 5x the resources as the image layer: -->
 
38
    
 
39
    <image name="arcgisonline transportation" driver="arcgis" loading_weight="5">
 
40
        <url>http://server.arcgisonline.com/ArcGIS/rest/services/Reference/ESRI_Transportation_World_2D/MapServer</url>
 
41
                <compress_textures>true</compress_textures>
 
42
    </image>
 
43
    
 
44
</map>