/usr/share/osgearth/maps/feature_model_scatter.earth is in osgearth-data 2.4.0+dfsg-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <!--
osgEarth Sample
Model Scattering using the "feature_geom" driver.
For each polygon in the feature geometry, scatter model instances within
that polygon as a specific density (instances/sqkm). Scattered placement
is randomized, but it is randomized exactly the same way each time.
-->
<map name="Model Scattering Demo" type="geocentric" version="2">
<!-- Our features layer. The "feature_geom" driver will analyze the
style sheet and determine how to render the feature data. -->
<model name="trees" driver="feature_geom" enabled="true">
<!-- Feature data set to load. This is a set of polygons representing
the public parks in Washington DC -->
<features name="parks" driver="ogr">
<url>/usr/share/osgearth/data/parks.shp</url>
<build_spatial_index>true</build_spatial_index>
</features>
<!-- Instancing enables GL's "DrawInstanced" support. -->
<instancing>true</instancing>
<!-- Disables feature indexing, since the trees are not mapped 1-to-1 to
real features anyway. -->
<feature_indexing>false</feature_indexing>
<!-- Fade in new tiles over one second. -->
<fade_in_duration>1.0</fade_in_duration>
<!-- The stylesheet will describe how to render the feature data. In this case
we indicate model substitution with density-based scattering. The "density"
units are instances-per-sqkm. -->
<layout>
<crop_features>true</crop_features>
<level max_range="7000" style="parks-1"/>
<level max_range="3000" style="parks-2"/>
<level max_range="1000" style="parks-3"/>
</layout>
<styles>
<style type="text/css">
parks-1 {
model: "/usr/share/osgearth/data/tree.ive";
model-placement: random;
model-density: 1000;
model-scale: 1.5;
altitude-clamping: terrain;
altitude-resolution: 0.001;
}
parks-2 {
model: "/usr/share/osgearth/data/tree.ive";
model-placement: random;
model-density: 2500;
model-scale: 2;
model-random-seed: 1;
altitude-clamping: terrain;
altitude-resolution: 0.001;
}
parks-3 {
model: "/usr/share/osgearth/data/tree.ive";
model-placement: random;
model-density: 5000;
model-scale: 2.5;
model-random-seed: 2;
altitude-clamping: terrain;
altitude-resolution: 0.001;
}
</style>
</styles>
</model>
<model name="parks" driver="feature_geom" overlay="true">
<features name="parks" driver="ogr">
<url>/usr/share/osgearth/data/parks.shp</url>
<build_spatial_index>false</build_spatial_index>
</features>
<styles>
<style type="text/css">
default {
fill: #00ff007f;
stroke: #ffff00ff;
altitide-clamping: terrain;
}
</style>
</styles>
</model>
<options>
<lighting>false</lighting>
<cache type="filesystem">
<path>osgearth_cache</path>
</cache>
</options>
<image name="mapquest_open_aerial" driver="xyz">
<url>http://oatile[1234].mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg</url>
<profile>spherical-mercator</profile>
<cache_policy usage="no_cache"/>
<nodata_image>http://oatile3.mqcdn.com/tiles/1.0.0/sat/18/49761/99026.jpg</nodata_image>
</image>
<elevation name="ReadyMap.org - Elevation" driver="tms">
<url>http://readymap.org/readymap/tiles/1.0.0/9/</url>
</elevation>
<external>
<viewpoint name="DC overview" heading="0" height="25.83" lat="38.9015" long="-77.0217" pitch="-89.9" range="28262"/>
<viewpoint name="DC close up" heading="-13.48" lat="38.911" long="-77.051" pitch="-10.1" range="2711"/>
</external>
</map>
|