boston.earth 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <!--
  2. osgEarth Sample.
  3. Demonstrates the use of a Resource Library in order to apply "typical" textures
  4. to extruded buildings.
  5. -->
  6. <map name="Boston Demo" type="geocentric" version="2">
  7. <options lighting="true" elevation_tile_size="15">
  8. <terrain lighting="false"/>
  9. <cache type="filesystem">
  10. <path>cache</path>
  11. </cache>
  12. <!-- <cache_policy usage="cache_only"/> -->
  13. </options>
  14. <image name="osm_mapnik" driver="xyz">
  15. <url>http://[abc].tile.openstreetmap.org/{z}/{x}/{y}.png</url>
  16. <profile>spherical-mercator</profile>
  17. </image>
  18. <!--
  19. <model name="buildings" driver="feature_geom">
  20. <features name="buildings" driver="ogr">
  21. <url>data/boston_buildings_utm19.shp</url>
  22. <build_spatial_index>true</build_spatial_index>
  23. </features>
  24. <layout tile_size_factor="52">
  25. <level name="default" max_range="20000" style="buildings"/>
  26. </layout>
  27. <styles>
  28. <library name="us_resources">
  29. <url>data/resources/textures_us/catalog.xml</url>
  30. </library>
  31. <style type="text/css">
  32. buildings {
  33. extrusion-height: 3.5 * max([story_ht_], 1);
  34. extrusion-flatten: true;
  35. extrusion-wall-style: building-wall;
  36. extrusion-wall-gradient: 0.8;
  37. extrusion-roof-style: building-rooftop;
  38. altitude-clamping: terrain;
  39. altitude-technique: map;
  40. altitude-binding: vertex;
  41. render-lighting: false;
  42. }
  43. building-wall {
  44. skin-library: us_resources;
  45. skin-tags: building;
  46. skin-random-seed: 1;
  47. fill: #ffffff;
  48. }
  49. building-rooftop {
  50. skin-library: us_resources;
  51. skin-tags: rooftop;
  52. skin-tiled: true;
  53. skin-random-seed: 1;
  54. fill: #ffffff;
  55. }
  56. </style>
  57. </styles>
  58. </model>
  59. -->
  60. <external>
  61. <viewpoints>
  62. <viewpoint name="Home" heading="-25" height="50" lat="42.355" long="-71.068" pitch="-90" range="480"/>
  63. <viewpoint name="Bird's eye" heading="24" height="50" lat="42.355" long="-71.068" pitch="-20" range="1000"/>
  64. <viewpoint name="Overview" heading="24.261" height="0" lat="42.34425" long="-71.076262" pitch="-21.6" range="3450"/>
  65. <viewpoint name="Downtown 1" heading="117" lat="42.3568" long="-71.0585" height="0" pitch="-20.4" range="1500" />
  66. <viewpoint name="Downtown 2" heading="-128.5" lat="42.3582" long="-71.0546" height="0" pitch="-19" range="1620" />
  67. <viewpoint name="Street Level" heading="-193" lat="42.3569" long="-71.07" pitch="0" height="20" range="85"/>
  68. </viewpoints>
  69. <sky hours="14.0"/>
  70. </external>
  71. </map>