zoukankan      html  css  js  c++  java
  • VPB测试 使用Osgdem运行例子

    1.Osgdem运行例子所需数据下载地址:

    http://www.cc.gatech.edu/projects/large_models/ps.html

    Download Elevation Map: 16385 × 16385 PNG: 188MB 
    Download Texture Map: 16384 × 16384 PNG: 268MB

    2.GDAL对高程数据和影像数据格式化处理:

    gdal_translate ps_height_16k.png ps_height_16k.tif

    gdaladdo -r average ps_height_16k.tif 2 4 8 16 32

    gdal_translate ps_texture_16k.png ps_texture_16k.tif

    gdaladdo -r average ps_texture_16k.tif 2 4 8 16 32

    3.使用osgdem命令生成模型文件

    osgdem --xx 10 --yy 10 -t ps_texture_16k.tif  
    --xx 10 --yy 10 -d ps_height_16k.tif  
    -l 8 -v 0.1 -o puget.ive -a pegout.osga

    Microsoft Windows [版本 10.0.17134.984]
    (c) 2018 Microsoft Corporation。保留所有权利。

    C:WindowsSystem32>e:

    E:>
    E:>
    E:>
    E:>cd E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata

    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>
    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>
    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>
    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>
    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>
    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>gdal_translate ps_height_16k.png ps_height_16k.tif
    Input file size is 16385, 16385
    0...10...20...30...40...50...60...70...80...90...100 - done.

    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>
    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>
    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>
    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>
    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>
    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>gdaladdo -r average ps_height_16k.tif 2 4 8 16 32
    0...10...20...30...40...50...60...70...80...90...100 - done.

    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>
    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>
    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>
    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>
    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>
    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>
    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>
    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>gdal_translate ps_texture_16k.png ps_texture_16k.tif
    Input file size is 16384, 16384
    0...10...20...30...40...50...60...70...80...90...100 - done.

    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>
    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>
    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>
    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>
    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>
    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>gdaladdo -r average ps_texture_16k.tif 2 4 8 16 32
    0...10...20...30...40...50...60...70...80...90...100 - done.

    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>
    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>
    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>
    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>
    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>
    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>osgdem --xx 10 --yy 10 -t ps_texture_16k.tif --xx 10 --yy 10 -d ps_height_16k.tif -l 8 -v 0.1 -o puget.ive -a pegout.osga
    Warning: archive option -a is temporarily disabled, building with archive.
    --xx 10
    --yy 10
    -t ps_texture_16k.tif
    ADD: ps_texture_16k.tif
    loaded layer ps_texture_16k.tif

    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>
    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>
    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>
    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>
    E:OpenSourceGraphVirtualPlanetBuilder_0_9_installdata>

    参考:https://www.cnblogs.com/eaglezhao/archive/2011/09/26/2192374.html

  • 相关阅读:
    ffmpeg rtmp推流 视频转码
    java日志发展史 log4j slf4j log4j2 jul jcl 日志和各种桥接包的关系
    nginx stream 流转发,可以转发rtmp、mysql访问流,转发rtmp、jdbc请求
    java web http 转https 通过nginx代理访问
    linux 服务器磁盘挂载
    novnc 通过websockify代理 配置多点访问
    linux 文件服务 minio 安装部署配置
    AOP实现原理,手写aop
    java 泛型
    JAVA反射getGenericSuperclass()用法
  • 原文地址:https://www.cnblogs.com/herd/p/11436736.html
Copyright © 2011-2022 走看看