zoukankan      html  css  js  c++  java
  • PotreeConverter——数据转换时的设置问题

    在使用potreeConverter转换数据的时候,有很多可选的参数,一般情况下,都不需要自己去预设,但是当有一些特殊需求的时候,就需要进行单独设置了,下面就potreeConverter里面的一些可选参数进行一些说明,帮助去得到合适的数据;

    下面是所有的可选设置:

    PotreeConverter [OPTIONS] SOURCE
    Options:
      -h   [ --help ] prints usage 
      -p   [ --generate-page ] arg Generates a ready to use web page with the given name.
      -o   [ --outdir ] arg output directory
      -s   [ --spacing ] arg Distance between points at root level. Distance halves each level.
      -d   [ --spacing-by-diagonal-fraction ] arg Maximum number of points on the diagonal in the first level (sets spacing). spacing = diagonal / value
      -l   [ --levels ] arg Number of levels that will be generated. 0: only root, 1: root and its children, ...
      -f   [ --input-format ] arg Input format. xyz: cartesian coordinates as floats, rgb: colors as numbers, i: intensity as number
      --color-range   arg
      --intensity-range  arg
      --output-format    arg Output format can be BINARY, LAS or LAZ. Default is BINARY
      -a   [ --output-attributes ] arg can be any combination of RGB, INTENSITY and CLASSIFICATION. Default is RGB.
      --scale   arg Scale of the X, Y, Z coordinate in LAS and LAZ files.
      --aabb   arg Bounding cube as "minX minY minZ maxX maxY maxZ". If not provided it is automatically computed
      --incremental    Add new points to existing conversion
      --overwrite    Replace existing conversion at target directory
      --source-listing-only    Create a sources.json but no octree.
      --projection   arg Specify projection in proj4 format.
      -q   [ --quality ] arg Specify FAST, DEFAULT or NICE to trade-off between quality and conversion speed.
      --list-of-files   arg A text file containing a list of file to be converted.
      --source   arg Source file. Can be LAS, LAZ, PTX or PLY
      --title   arg Page title
      --description   arg Description to be shown in the page.
      --edl-enabled   Enable Eye-Dome-Lighting.
      --show-skybox
      --material   arg RGB, ELEVATION, INTENSITY, INTENSITY_GRADIENT, RETURN_NUMBER, SOURCE, LEVEL_OF_DETAIL

    那么这些设置都是应该如何使用呢?

    下面是一些使用案例:

    设置了传入的数据格式xyzi,设置密度的范围,一般是0-255,超过了会出错,设置了输出路径 ,设置了输出文件名字,输出文件格式,以及数据来源的格式

    PotreeConverter.exe myfile.las -f xyzi --intensity-range 2048 2303 -o c:xampp htdocsmy_potree -p test --output-format LAS --source LAS

    设置了数据的投影坐标系,一般是按照proj4的格式进行输入,其他的左边系参数可能会出错,另外还设置了输出数据的属性 

    PotreeConverter.exe D: estinput.las -o C:OSGeo4Wapachehtdocspotree est -p index --projection "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"  --output-attributes RGB INTENSITY CLASSIFICATION

    .PotreeConverter.exe <input> -o <targetDir> -a RGB CLASSIFICATION

    对包围盒子的设置如下:

    # first, convert with custom bounding box and then append new_data.las afterwards.
    # points in new_data MUST fit into bounding box!
    ./PotreeConverter.exe C:/data -o C:/potree_converted -aabb "-0.748 -2.780 2.547 3.899 1.867 7.195"
    ./PotreeConverter.exe C:/new_data.las -o C:/potree_converted --incremental
  • 相关阅读:
    Add Two Numbers
    Reverse Linked List II
    Reverse Linked List
    Remove Duplicates from Sorted List
    Remove Duplicates from Sorted List II
    Partition List
    Intersection of Two Linked Lists
    4Sum
    3Sum
    2Sum
  • 原文地址:https://www.cnblogs.com/wema/p/7359248.html
Copyright © 2011-2022 走看看