一些不寻常的点云输入文件,例如具有非标准列布局或非标准地理标签的 LAS 文件,无法自动正确地预处理。它们包含已经应用于坐标的地理标签转换。以标准方式处理.las 文件会导致再次应用转换,从而导致坐标错误。
我们的开发团队实现了一个新的预处理器可执行文件,允许用户在预处理期间忽略 WKT 字符串 / GeoTIFF 标签。这样,在 V21 中加载但在 V22 中无法加载的文件将再次工作。
如果在操作系统外壳中无参数运行预处理器可执行文件,可以找到一组完整的重构后的可执行预处理器选项:
Options:
Dry run:
-h [ --help ] print allowed options
-p [ --parse ] print parsed arguments (without file access)
-H [ --header ] print las/laz/e57 header (without reading
points)
Global:
-o [ --output ] arg output filename (string)
-f [ --folder ] arg output folder (string)
-d [ --discretization ] arg coordinate discretization in meter (double;
default 0.000100)
-u [ --unstructured ] treat input files as unstructured
-t [ --threads ] arg number of threads (uint32_t; default 12)
Modifiers for subsequent (!) input files:
-s [ --scale ] arg scale factor to meter (double; default 1.000000)
-c [ --columns ] arg PTS columns (string, default "auto"):
'-c "auto"' assumes 'XYZ[I][RGB]'
'-c "XYZ..BGR"' for example
allows 'XYZRGBI.' with '.' column skip
-w [ --wkt ] arg well-known text (WKT) (string, default "file"):
'-w "skip"' skips WKT of input file(s)
'-w "file"' uses WKT of input file(s)
'-w "GEOGCS[\"WGS 84\",...]"' for example
-r [ --rgb ] arg override input RGB bits (uint32_t; default 0):
'-r 0' causes automatic bit determination
allows 0, 8 and 16
Input files:
-i [ --input ] arg input files (space separated, wildcard *):
/path/to/stem.ext
/path/to/scan*.*
使用新的可执行文件完成预处理的步骤:
注意:参数中使用的第一个路径是实际点云文件的路径,最后一个路径是将为.las 文件创建缓存的空文件夹。
4. 等待预处理。结束时,将显示“预处理成功完成!”消息。
PS C:\Program Files\Bricsys\BricsCAD V24 en_US> .\preprocessor.exe -w skip -i 'E:\FILE\filename.las' -o myCloud -f "E:\test"
**************************
* Parsed program options *
**************************
output = myCloud.vrm
folder = E:/test
discretization = 0.0001
unstructured = use scan positions if present
threads = 12
**************************
file 1:
path = E:\FILE\filename.las
scale = 1
wkt = skip
rgb = automatically determined
**************************
Running preprocess: track progress at E:/test\myCloud.log
Preprocessing finished successful!
**************************
5. 将创建的新缓存文件夹(在上述示例中为 E:\ 的 test 文件夹)复制到 CSCAD 的 PointCloudCache 中:
C:\Users%username%\AppData\Roaming\CSCAD\CSCAD\V24x64\zh_CN\PointCloudCache
6. 打开 CSCAD,创建新绘图并保存。
7. 运行 _POINTCLOUDREFERENCE 命令 -> 插入 myCloud.vrm -> 设置渲染的视觉样式,缩放到范围,点云应正确加载到绘图中。