@echo off set BIN_PATH=%~sdp0 set PATH=%BIN_PATH%\lib;%PATH% set PARAM_1=%1% set PARAM_2=%2% set PARAM_3=%3% set PARAM_4=%4% set PARAM_5=%5% echo PotreeConverter begin ::模型裁剪 第三个参数.json, 第一参数为“cut”, 第二参数:输出模型(.las或.ply) echo %PARAM_3%| findstr .json >nul && if %PARAM_1% == cut ( echo cut models %BIN_PATH%\PotreeConverter.exe --out_path %PARAM_2% --merge_cut_param_path %PARAM_3% ) ::模型转网页显示 第一参数为模型(.las或.ply),第二参数目录,第三个参数“” echo %PARAM_1%| findstr .las >nul && ( echo web bin %BIN_PATH%\PotreeConverter.exe %PARAM_1% -o %PARAM_2%/webcloud -output-format bin --output-attributes RGB NORMAL --overwrite ) echo %PARAM_1%| findstr .ply >nul && ( echo web bin %BIN_PATH%\PotreeConverter.exe %PARAM_1% -o %PARAM_2%/webcloud -output-format bin --output-attributes RGB NORMAL --overwrite ) :: 坐标系转换 参数1:控制点.jon文件;参数2:输入模型(.las或.ply); 参数3:输出模型(.las或.ply) echo %PARAM_1%| findstr .json >nul && ( echo add geo. crs2crs model %BIN_PATH%\PotreeConverter.exe --las_control_points_path %PARAM_1% --las_input_path %PARAM_2% --out_path %PARAM_3% ) :: 模型检查 echo %PARAM_3%| findstr .json >nul && if %PARAM_1% == check ( echo check model %BIN_PATH%\PotreeConverter.exe --las_input_path %PARAM_2% --check_result %PARAM_3% ) :: 获取las模型投影坐标系(epsg代码)、中心点. 参数1:"get_pcs";参数2:输入模型.las; 参数3:输出json文件路径 echo %PARAM_3%| findstr .json >nul && if %PARAM_1% == get_pcs ( echo get_pcs model %BIN_PATH%\PotreeConverter.exe --las_input_path %PARAM_2% --out_pcs_json %PARAM_3% ) :: tufang裁剪 echo %PARAM_3%| findstr .json >nul && if %PARAM_1% == cut_tufang ( echo tufang cut models %BIN_PATH%\PotreeConverter.exe --out_path %PARAM_2% --merge_cut_param_path_tufang %PARAM_3% ) :: resize img if %PARAM_1% == resize ( echo resize image models %BIN_PATH%\PotreeConverter.exe --action %PARAM_1% --in_img_path %PARAM_2% --new_width %PARAM_3% --new_height %PARAM_4% --out_img_path %PARAM_5% ) echo PotreeConverter end