Commit d14afb3e authored by xuebingbing's avatar xuebingbing

降低boost版本api

parent 118014fd
......@@ -533,9 +533,8 @@ int pcd2lasByStationFiles(const cxxopts::ParseResult& argsresult)
return -1;
}
temp = argsresult["jd_station_file"].as<std::string>();
//auto jd_stationfilepath = system_complete(path(temp), sys_err_code);
auto jd_stationfilepath = system_complete(path(temp));
if (!exists(jd_stationfilepath) || !is_regular_file(jd_stationfilepath))
auto jd_stationfilepath = system_complete(path(temp), sys_err_code);
if (0 != sys_err_code.value() || !exists(jd_stationfilepath) || !is_regular_file(jd_stationfilepath))
{
std::cout << "ERROR:" << currentmode << " 找不到京东站心文件:" << jf_stationfilepath.string() << " DETAIL:" << sys_err_code.message() << std::endl;
return -1;
......@@ -548,8 +547,8 @@ int pcd2lasByStationFiles(const cxxopts::ParseResult& argsresult)
return -1;
}
//path pcd_filepath(temp);
auto pcd_filepath = system_complete(path(temp));
if (!exists(pcd_filepath) || !is_regular_file(pcd_filepath))
auto pcd_filepath = system_complete(path(temp), sys_err_code);
if (0 != sys_err_code.value() || !exists(pcd_filepath) || !is_regular_file(pcd_filepath))
{
std::cout << "ERROR:" << currentmode << " 指定pcd文件错误:" << jf_stationfilepath.string() << " DETAIL:" << sys_err_code.message() << std::endl;
return -1;
......@@ -561,8 +560,8 @@ int pcd2lasByStationFiles(const cxxopts::ParseResult& argsresult)
std::cout << "ERROR: " << currentmode << " 未指定输入las文件" << std::endl;
return -1;
}
auto las_filepath = system_complete(path(temp));
if (exists(las_filepath) && is_regular_file(las_filepath))
auto las_filepath = system_complete(path(temp), sys_err_code);
if (!sys_err_code && !sys_err_code.failed() && exists(las_filepath) && is_regular_file(las_filepath))
{
std::cout << "INFO:" << currentmode << " 指定输出las文件已存在,将覆盖原文件 " << las_filepath.string() << std::endl;
//return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment