osgEarthSamples1.0运行事例



osgEarthSamples是一个osgEarth测试事例运行程序,用户可在系统中设置测试事例目录加载.earth后缀xml文档,对文档进行格式化显示,可编辑,保存。
1、文件-->打开驱动器设定“测试事例目录”
2、双击又测树目录,加载.earth文档,如有修改,可保存
3、xml-->查看方式设定文本显示格式。
4、可在命令文本框中,自定义命令。
5、文件-->运行,运行“命令”串,查看osgEarth实例程序。


如osgEarth实例程序运行失败,请设置环境变量:

OSG_DIR x:\OSG
OSG_FILE_PATH %OSG_DIR%\OpenSceneGraph\data;%OSG_DIR%\osgEarth\data;%OSG_DIR%\gdal\data;
OSG_WINDOW 600 15 800 800
Path  %OSG_DIR%\OpenSceneGraph\bin;%OSG_DIR%\osgEarth\bin;%OSG_DIR%\3rdParty\bin


下载地址:http://download.csdn.net/detail/giself/8437581

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
osgEarth 的 121 个案例详解 osgEarth 的 121 个案例详解 ...........................................................................................................1 1. aeqd.earth.................................................................................................................................4 2. annotation.earth .......................................................................................................................5 3. annotation_dateline.earth........................................................................................................6 4. annotation_dateline_projected.earth ......................................................................................8 5. annotation_flat.earth................................................................................................................8 6. arcgisonline.earth .....................................................................................................................9 7. bing.earth................................................................................................................................10 8. boston.earth............................................................................................................................11 9. boston_buildings.earth ...........................................................................................................12 10. boston_projected.earth ..................................................................................................13 11. boston_tfs.earth..............................................................................................................14 12. boston-gpu.earth ............................................................................................................15 13. bumpmap.earth ..............................................................................................................16 14. clouds.earth ....................................................................................................................17 15. colorramp.earth ..............................................................................................................18 16. contourmap.earth ...........................................................................................................19 17. datum_override.earth.....................................................................................................20 18. day_night_mp.earth........................................................................................................21 19. day_night_rex.earth........................................................................................................21 20. detail_texture.earth ........................................................................................................21 21. errors.earth .....................................................................................................................22 22. fade_elevation.earth.......................................................................................................22 23. feature_clip_plane.earth.................................................................................................23 24. feature_country_boundaries.earth.................................................................................24 25. feature_custom_filters.earth ..........................................................................................25 26. feature_draped_lines.earth ............................................................................................26 27. feature_draped_polygons.earth .....................................................................................27 28. feature_elevation.earth ..................................................................................................28 29. feature_extrude.earth.....................................................................................................29 30. feature_geom.earth ........................................................................................................30 31. feature_gpx.earth............................................................................................................31 32. feature_inline_geometry.earth.......................................................................................32 33. feature_labels.earth........................................................................................................33 34. feature_labels_script.earth.............................................................................................35 35. feature_levels_and_selectors.earth................................................................................35 36. feature_model_scatter.earth ..........................................................................................36 37. feature_models.earth .....................................................................................................37 38. feature_occlusion_culling.earth......................................................................................38osgEarth 编辑器 SXEarth www.sxsim.com 2 39. feature_offset_polygons.earth .......................................................................................38 40. feature_overlay.earth......................................................................................................39 41. feature_poles.earth.........................................................................................................40 42. feature_population_cylinders.earth ...............................................................................40 43. feature_raster.earth ........................................................................................................41 44. feature_rasterize.earth ...................................................................................................41 45. feature_rasterize_2.earth ...............................................................................................42 46. feature_scripted_styling.earth........................................................................................43 47. feature_scripted_styling_2.earth....................................................................................43 48. feature_scripted_styling_3.earth....................................................................................43 49. feature_style_selector.earth ...........................................................................................44 50. feature_tfs.earth .............................................................................................................45 51. feature_tfs_scripting.earth .............................................................................................46 52. feature_wfs.earth............................................................................................................47 53. fractal_elevation.earth....................................................................................................47 54. gdal_multiple_files.earth ................................................................................................47 55. gdal_tiff.earth..................................................................................................................48 56. geomshader.earth ...........................................................................................................49 57. glsl.earth..........................................................................................................................50 58. glsl_filter.earth ................................................................................................................51 59. graticules.earth ...............................................................................................................52 60. hires-inset.earth..............................................................................................................53 61. intersect_filter.earth .......................................................................................................54 62. land_cover_mixed.earth .................................................................................................55 63. layer_opacity.earth .........................................................................................................55 64. ldb.earth..........................................................................................................................56 65. mapbox.earth..................................................................................................................56 66. mask.earth ......................................................................................................................57 67. mb_tiles.earth.................................................................................................................58 68. mercator_to_plate_carre.earth ......................................................................................59 69. mgrs_graticule.earth.......................................................................................................60 70. min_max_level.earth ......................................................................................................60 71. min_max_range.earth.....................................................................................................61 72. min_max_range_rex.earth..............................................................................................62 73. min_max_resolutions.earth............................................................................................62 74. multiple_heightfields.earth.............................................................................................64 75. night.earth.......................................................................................................................65 76. nodata.earth ...................................................................................................................65 77. noise.earth ......................................................................................................................68 78. normalmap.earth ............................................................................................................68 79. ocean.earth .....................................................................................................................69 80. ocean_no_elevation.earth ..............................................................................................69 81. openstreetmap.earth......................................................................................................69 82. openstreetmap_buildings.earth .....................................................................................70osgEarth 编辑器 SXEarth www.sxsim.com 3 83. openstreetmap_flat.earth...............................................................................................70 84. openstreetmap_full.earth...............................................................................................70 85. openweathermap_clouds.earth......................................................................................71 86. openweathermap_precipitation.earth ...........................................................................71 87. openweathermap_pressure.earth ..................................................................................71 88. photosphere1.earth ........................................................................................................71 89. photosphere2.earth ........................................................................................................72 90. readymap.earth...............................................................................................................73 91. readymap_flat.earth .......................................................................................................73 92. readymap_include.earth.................................................................................................74 93. readymap_template.earth..............................................................................................74 94. readymap-elevation-only.earth.......................................................................................74 95. readymap-osm.earth ......................................................................................................75 96. readymap-priority.earth..................................................................................................75 97. readymap-rex.earth ........................................................................................................75 98. roads.earth......................................................................................................................76 99. roads-flattened.earth......................................................................................................76 100. roads-test.earth...............................................................................................................76 101. scene_clamping.earth.....................................................................................................76 102. silverlining.earth..............................................................................................................78 103. simple_model.earth........................................................................................................78 104. skyview1.earth ................................................................................................................79 105. skyview2.earth ................................................................................................................80 106. splat.earth .......................................................................................................................81 107. splat-blended-with-imagery.earth ..................................................................................81 108. splat-with-mask-layer.earth.............................................................................................81 109. splat-with-multiple-zones.earth......................................................................................82 110. splat-with-rasterized-land-cover.earth............................................................................82 111. stamen_toner.earth ........................................................................................................82 112. stamen_watercolor.earth................................................................................................82 113. state_plane.earth............................................................................................................82 114. tess_screen_space.earth.................................................................................................82 115. tess-coastlines.earth .......................................................................................................82 116. tess-terrain.earth ............................................................................................................83 117. triton.earth......................................................................................................................83 118. triton_drop_shader.earth................................................................................................83 119. utm.earth ........................................................................................................................83 120. utm_graticule.earth ........................................................................................................83 121. vertical_datum.earth ......................................................................................................83 122. wms_nexrad.earth ..........................................................................................................84 123. wms-t_nexrad_animated.earth ......................................................................................84 124. 编辑问题总结....................................................................................错误!未定义书签。
### 回答1: MATLAB是一种用于数学计算、数据分析和可视化的编程语言和开发环境。它具有丰富的库和函数,可以进行各种科学计算和工程分析。下面是一个MATLAB运行程序的示例。 假设我们希望计算一个三角形的面积。首先,我们需要输入三角形的底边长度和高度,然后利用公式:面积 = 底边长度 × 高度 ÷ 2 来计算面积。 在MATLAB中,我们可以编写一个程序来实现这个计算过程。以下是一个示例程序: ```MATLAB % 输入底边长度和高度 base = input('请输入三角形的底边长度:'); height = input('请输入三角形的高度:'); % 计算面积 area = base * height / 2; % 输出结果 fprintf('三角形的面积是:%f\n', area); ``` 在这个示例程序中,我们首先使用`input`函数接收用户输入的底边长度和高度,然后利用数据计算出面积,并将结果存储在变量`area`中。最后,使用`fprintf`函数将计算结果输出到命令窗口。 要运行这个程序,我们可以在MATLAB命令窗口中粘贴代码并按下回车键。程序将要求我们输入底边长度和高度,并计算并输出三角形的面积。 这只是一个简单的示例,MATLAB可以进行更复杂的计算任务,如矩阵运算、数值求解、信号处理等。通过编写自己的程序,我们可以利用MATLAB进行各种科学计算和工程分析。 ### 回答2: MATLAB是一个功能强大的科学计算和工程仿真软件,可以用于各种计算机编程和数据分析任务。下面是一个MATLAB运行程序的示例。 假设我们有一个简单的任务,需要计算一个三维向量的模长,并将结果输出。 我们首先在MATLAB编辑器中创建一个新的脚本文件,并命名为"vector_length.m"。 在该文件中,我们定义一个三维向量,例如v = [1, 2, 3]。 然后,我们使用MATLAB内置的norm函数来计算向量的模长,并将结果存储在一个新的变量len中,代码如下: ``` matlab v = [1, 2, 3]; len = norm(v); disp(len); ``` 我们可以保存该文件,并在MATLAB命令窗口中输入"vector_length"来运行程序。MATLAB会加载脚本文件,并执行其中的代码。经过计算后,向量的模长将打印在命令窗口中。在这个例子中,结果应该是3.7417。 这只是一个简单的例子,展示了如何在MATLAB中运行程序。实际上,MATLAB可以进行更复杂的运算和数据处理。您可以在脚本文件中编写更多的代码来完成各种计算任务,例如图形绘制、矩阵运算、数据模拟等。 总之,使用MATLAB编写程序非常简单,只需将代码逐行编写在脚本文件中,然后通过运行该文件即可执行程序,并在命令窗口中查看结果。 ### 回答3: MATLAB是一种强大的数值计算软件,也是一种编程语言。对于运行MATLAB程序,我们可以通过以下事例进行说明: 首先,我们需要编写一个简单的MATLAB程序。假设我们要编写一个程序来计算一个数组中所有元素的平均值。 我们可以先打开MATLAB软件,在编辑窗口中输入以下代码: ``` % 定义一个数组 nums = [1, 2, 3, 4, 5]; % 使用mean函数计算数组的平均值 avg = mean(nums); % 输出结果 disp(avg); ``` 然后,我们保存程序文件为`average.m`并点击运行按钮或者直接使用命令行运行该程序。 执行程序后,MATLAB会首先执行`nums = [1, 2, 3, 4, 5];`这一行,将一个含有5个元素的数组赋值给`nums`变量。接着,执行`avg = mean(nums);`这一行,使用`mean`函数计算`nums`数组的平均值,并将结果赋值给`avg`变量。最后,执行`disp(avg);`这一行,将计算结果输出到命令窗口。 当我们运行该程序时,MATLAB会依次执行程序中的每一行代码,最后输出平均值result到命令窗口。在这个简单的例子中,我们只对一个数组进行了简单的数值计算并输出结果,帮助我们理解MATLAB运行程序的基本过程。 这只是一个简单的MATLAB程序事例,实际中我们可以编写更复杂的程序来实现各种数值计算、数据处理、图像处理等任务。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值