logo资料库

osgEarth的121个案例详解.pdf

第1页 / 共84页
第2页 / 共84页
第3页 / 共84页
第4页 / 共84页
第5页 / 共84页
第6页 / 共84页
第7页 / 共84页
第8页 / 共84页
资料共84页,剩余部分请下载后查看
osgEarth的121个案例详解
1. aeqd.earth
2. annotation.earth
3. annotation_dateline.earth
4. annotation_dateline_projected.earth
5. annotation_flat.earth
6. arcgisonline.earth
7. bing.earth
8. boston.earth
9. boston_buildings.earth
10. boston_projected.earth
11. boston_tfs.earth
12. boston-gpu.earth
13. bumpmap.earth
14. clouds.earth
15. colorramp.earth
16. contourmap.earth
17. datum_override.earth
18. day_night_mp.earth
19. day_night_rex.earth
20. detail_texture.earth
21. errors.earth
22. fade_elevation.earth
23. feature_clip_plane.earth
24. feature_country_boundaries.earth
25. feature_custom_filters.earth
26. feature_draped_lines.earth
27. feature_draped_polygons.earth
28. feature_elevation.earth
29. feature_extrude.earth
30. feature_geom.earth
31. feature_gpx.earth
32. feature_inline_geometry.earth
33. feature_labels.earth
34. feature_labels_script.earth
35. feature_levels_and_selectors.earth
36. feature_model_scatter.earth
37. feature_models.earth
38. feature_occlusion_culling.earth
39. feature_offset_polygons.earth
40. feature_overlay.earth
41. feature_poles.earth
42. feature_population_cylinders.earth
43. feature_raster.earth
44. feature_rasterize.earth
45. feature_rasterize_2.earth
46. feature_scripted_styling.earth
47. feature_scripted_styling_2.earth
48. feature_scripted_styling_3.earth
49. feature_style_selector.earth
50. feature_tfs.earth
51. feature_tfs_scripting.earth
52. feature_wfs.earth
53. fractal_elevation.earth
54. gdal_multiple_files.earth
55. gdal_tiff.earth
56. geomshader.earth
57. glsl.earth
58. glsl_filter.earth
59. graticules.earth
60. hires-inset.earth
61. intersect_filter.earth
62. land_cover_mixed.earth
63. layer_opacity.earth
64. ldb.earth
65. mapbox.earth
66. mask.earth
67. mb_tiles.earth
68. mercator_to_plate_carre.earth
69. mgrs_graticule.earth
70. min_max_level.earth
71. min_max_range.earth
72. min_max_range_rex.earth
73. min_max_resolutions.earth
74. multiple_heightfields.earth
75. night.earth
76. nodata.earth
77. noise.earth
78. normalmap.earth
79. ocean.earth
80. ocean_no_elevation.earth
81. openstreetmap.earth
82. openstreetmap_buildings.earth
83. openstreetmap_flat.earth
84. openstreetmap_full.earth
85. openweathermap_clouds.earth
86. openweathermap_precipitation.earth
87. openweathermap_pressure.earth
88. photosphere1.earth
89. photosphere2.earth
90. readymap.earth
91. readymap_flat.earth
92. readymap_include.earth
93. readymap_template.earth
94. readymap-elevation-only.earth
95. readymap-osm.earth
96. readymap-priority.earth
97. readymap-rex.earth
98. roads.earth
99. roads-flattened.earth
100. roads-test.earth
101. scene_clamping.earth
102. silverlining.earth
103. simple_model.earth
104. skyview1.earth
105. skyview2.earth
106. splat.earth
107. splat-blended-with-imagery.earth
108. splat-with-mask-layer.earth
109. splat-with-multiple-zones.earth
110. splat-with-rasterized-land-cover.earth
111. stamen_toner.earth
112. stamen_watercolor.earth
113. state_plane.earth
114. tess_screen_space.earth
115. tess-coastlines.earth
116. tess-terrain.earth
117. triton.earth
118. triton_drop_shader.earth
119. utm.earth
120. utm_graticule.earth
121. vertical_datum.earth
122. wms_nexrad.earth
123. wms-t_nexrad_animated.earth
124. 问题反馈与编辑器公众号
osgEarth 编辑器 SXEarth www.sxsim.com osgEarth 的 121 个案例详解 osgEarth 的 121 个案例详解 ........................................................................................................... 1 1. aeqd.earth ................................................................................................................................. 4 annotation.earth ....................................................................................................................... 5 2. annotation_dateline.earth ........................................................................................................ 6 3. 4. annotation_dateline_projected.earth ...................................................................................... 8 annotation_flat.earth ................................................................................................................ 8 5. 6. arcgisonline.earth ..................................................................................................................... 9 7. bing.earth ................................................................................................................................ 10 8. boston.earth ............................................................................................................................ 11 9. boston_buildings.earth ........................................................................................................... 12 10. boston_projected.earth .................................................................................................. 13 boston_tfs.earth .............................................................................................................. 14 11. boston-gpu.earth ............................................................................................................ 15 12. bumpmap.earth .............................................................................................................. 16 13. 14. clouds.earth .................................................................................................................... 17 colorramp.earth .............................................................................................................. 18 15. contourmap.earth ........................................................................................................... 19 16. 17. datum_override.earth ..................................................................................................... 20 day_night_mp.earth ........................................................................................................ 21 18. day_night_rex.earth ........................................................................................................ 21 19. 20. detail_texture.earth ........................................................................................................ 21 errors.earth ..................................................................................................................... 22 21. fade_elevation.earth ....................................................................................................... 22 22. 23. feature_clip_plane.earth ................................................................................................. 23 feature_country_boundaries.earth ................................................................................. 24 24. feature_custom_filters.earth .......................................................................................... 25 25. 26. feature_draped_lines.earth ............................................................................................ 26 feature_draped_polygons.earth ..................................................................................... 27 27. feature_elevation.earth .................................................................................................. 28 28. feature_extrude.earth ..................................................................................................... 29 29. 30. feature_geom.earth ........................................................................................................ 30 feature_gpx.earth............................................................................................................ 31 31. feature_inline_geometry.earth ....................................................................................... 32 32. 33. feature_labels.earth ........................................................................................................ 33 feature_labels_script.earth ............................................................................................. 35 34. feature_levels_and_selectors.earth ................................................................................ 35 35. 36. feature_model_scatter.earth .......................................................................................... 36 feature_models.earth ..................................................................................................... 37 37. 38. feature_occlusion_culling.earth ...................................................................................... 38 1
osgEarth 编辑器 SXEarth www.sxsim.com 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. feature_offset_polygons.earth ....................................................................................... 38 feature_overlay.earth ...................................................................................................... 39 feature_poles.earth......................................................................................................... 40 feature_population_cylinders.earth ............................................................................... 40 feature_raster.earth ........................................................................................................ 41 feature_rasterize.earth ................................................................................................... 41 feature_rasterize_2.earth ............................................................................................... 42 feature_scripted_styling.earth ........................................................................................ 43 feature_scripted_styling_2.earth .................................................................................... 43 feature_scripted_styling_3.earth .................................................................................... 43 feature_style_selector.earth ........................................................................................... 44 feature_tfs.earth ............................................................................................................. 45 feature_tfs_scripting.earth ............................................................................................. 46 feature_wfs.earth ............................................................................................................ 47 fractal_elevation.earth .................................................................................................... 47 gdal_multiple_files.earth ................................................................................................ 47 gdal_tiff.earth .................................................................................................................. 48 geomshader.earth ........................................................................................................... 49 glsl.earth .......................................................................................................................... 50 glsl_filter.earth ................................................................................................................ 51 graticules.earth ............................................................................................................... 52 hires-inset.earth .............................................................................................................. 53 intersect_filter.earth ....................................................................................................... 54 land_cover_mixed.earth ................................................................................................. 55 layer_opacity.earth ......................................................................................................... 55 ldb.earth .......................................................................................................................... 56 mapbox.earth .................................................................................................................. 56 mask.earth ...................................................................................................................... 57 mb_tiles.earth ................................................................................................................. 58 mercator_to_plate_carre.earth ...................................................................................... 59 mgrs_graticule.earth ....................................................................................................... 60 min_max_level.earth ...................................................................................................... 60 min_max_range.earth ..................................................................................................... 61 min_max_range_rex.earth .............................................................................................. 62 min_max_resolutions.earth ............................................................................................ 62 multiple_heightfields.earth............................................................................................. 64 night.earth ....................................................................................................................... 65 nodata.earth ................................................................................................................... 65 noise.earth ...................................................................................................................... 68 normalmap.earth ............................................................................................................ 68 ocean.earth ..................................................................................................................... 69 ocean_no_elevation.earth .............................................................................................. 69 openstreetmap.earth ...................................................................................................... 69 openstreetmap_buildings.earth ..................................................................................... 70 2
osgEarth 编辑器 SXEarth www.sxsim.com openstreetmap_flat.earth ............................................................................................... 70 83. openstreetmap_full.earth ............................................................................................... 70 84. openweathermap_clouds.earth ...................................................................................... 71 85. openweathermap_precipitation.earth ........................................................................... 71 86. openweathermap_pressure.earth .................................................................................. 71 87. photosphere1.earth ........................................................................................................ 71 88. photosphere2.earth ........................................................................................................ 72 89. readymap.earth............................................................................................................... 73 90. readymap_flat.earth ....................................................................................................... 73 91. readymap_include.earth ................................................................................................. 74 92. readymap_template.earth .............................................................................................. 74 93. readymap-elevation-only.earth ....................................................................................... 74 94. readymap-osm.earth ...................................................................................................... 75 95. readymap-priority.earth .................................................................................................. 75 96. readymap-rex.earth ........................................................................................................ 75 97. roads.earth ...................................................................................................................... 76 98. roads-flattened.earth ...................................................................................................... 76 99. roads-test.earth............................................................................................................... 76 100. scene_clamping.earth ..................................................................................................... 76 101. silverlining.earth.............................................................................................................. 78 102. simple_model.earth ........................................................................................................ 78 103. skyview1.earth ................................................................................................................ 79 104. skyview2.earth ................................................................................................................ 80 105. splat.earth ....................................................................................................................... 81 106. splat-blended-with-imagery.earth .................................................................................. 81 107. splat-with-mask-layer.earth ............................................................................................. 81 108. splat-with-multiple-zones.earth ...................................................................................... 82 109. splat-with-rasterized-land-cover.earth ............................................................................ 82 110. stamen_toner.earth ........................................................................................................ 82 111. stamen_watercolor.earth ................................................................................................ 82 112. state_plane.earth ............................................................................................................ 82 113. tess_screen_space.earth ................................................................................................. 82 114. tess-coastlines.earth ....................................................................................................... 82 115. tess-terrain.earth ............................................................................................................ 83 116. triton.earth ...................................................................................................................... 83 117. triton_drop_shader.earth................................................................................................ 83 118. utm.earth ........................................................................................................................ 83 119. utm_graticule.earth ........................................................................................................ 83 120. vertical_datum.earth ...................................................................................................... 83 121. wms_nexrad.earth .......................................................................................................... 84 122. 123. wms-t_nexrad_animated.earth ...................................................................................... 84 124. 编辑问题总结 ....................................................................................错误!未定义书签。 3
osgEarth 编辑器 SXEarth www.sxsim.com 关于 osgEarth 案例详解 1) 软件环境 osgEarth:官方代码库 2017.11.09 最新代码地址:www.github.com/gwaldron/osgearth osgEarth 编辑器:SXEarth2.8 及以上,下载地址:www.sxsim.com 2) 硬件环境 本文编写和案例测试使用的硬件环境:CPU: i5 四核,显卡:GTX660,内存:8GB。 (推荐使用英伟达显卡,intel 显卡,会出现三维场景中文字显示不全的问题) 3) 文档说明 本文基于 osgEarth 2017.11.09 官方代码库源代码 tests 目录下案例编写,不一定完全适 用于其他版本,本文包含在 SXEarth2.8+安装包中,安装后位于 doc 目录下。 本文还不完善,会随着 SXEarth 升级,逐步完善。 4) 问题反馈 遇到任何问题,欢迎读者反馈,邮箱 674200401@qq.com 1. aeqd.earth 1) 案例概述 等距方位投影案例。 2) 编辑测试 点击左侧场景栏的“场景”项,在右侧的属性面板可以看到投影(Proj.4 地图投影描述): +proj=aeqd +lat_0=90 +lon_0=0 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs; 3) 场景属性 场景面板的“场景”项包含了描述地球构建的基础信息,修改其属性,需要保存场景, 系统会自动重新打开该项目,以刷新场景基础坐标系统等信息。 4) 技巧 拖拽 earth 文件到编辑器界面,可实现打开。 全屏浏览:在“窗口”菜单,点“全屏”,快捷键“Ctrl+f”。 退出全屏:快捷键“Esc”。 5) Proj.4 库 Proj.4 是开源 GIS 最著名的地图投影库,支持各种地图投影。 关于地图投影参数,请参考:https://github.com/OSGeo/proj.4/wiki/GenParms 国内使用的北京 54 和西安 80 坐标系,osgEarth 可以通过修改“场景”的投影信息实现 支持。 地球坐标系与投影方式的理解(关于北京 54,西安 80,WGS84;高斯,兰勃特,墨卡托投影) 参考: http://www.cnblogs.com/xieqianli/p/4186281.html 4
osgEarth 编辑器 SXEarth www.sxsim.com 2. annotation.earth 1) 案例概述 标记显示案例,标记包括文字、模型、图标、地面帖图等。 2) 样式编辑 点击标记,右侧属性面板,可修改名称、颜色、线宽、边框、填充等。 3) 复制标记 按住键盘 Ctrl 键,拖拽标记,实现复制标记。 4) 移动标记 按住键盘 Alt 键,拖拽标记,实现移动标记。 5
osgEarth 编辑器 SXEarth www.sxsim.com 3. annotation_dateline.earth 1) 案例概述 在地球上,标记线跨越国际日期变更线,是同一条线,不需要切断。 (在投影地图,会自动切断显示,参见 annotation_dateline_projected.earth) 2) 编辑测试 点击选中标记线,右侧属性面板编辑线宽、颜色、光照,右键“样式”,选择“编辑” 菜单,打开“编辑样式”对话框,可以添加其他样式。 6
osgEarth 编辑器 SXEarth www.sxsim.com 3) 编辑样式对话框 4) 简化窗口 在“窗口”菜单,点击“场景面板”关闭左侧面板。点击“属性面板”,关闭右侧面板。 在窗口的右上角,点击“选项”旁边向上的箭头,关闭工具栏。 7
osgEarth 编辑器 SXEarth www.sxsim.com 4. annotation_dateline_projected.earth 1) 案例概述 在投影地图上,标记线跨越国际日期变更线,标记线会自动切开显示(否则会出现一条 跨越东西半球的连接线)。 5. annotation_flat.earth 1) 案例概述 投影地图上各种标记的显示; 2) 编辑测试 点击,选中标记,在属性面板修改文字、标记颜色、标记位置; 8
分享到:
收藏