Commit 118014fd authored by xuebingbing's avatar xuebingbing

fix boost 版本高的api到 低版本

parent 8c71bcf1
...@@ -496,7 +496,7 @@ int pcd2lasByStationFiles(const cxxopts::ParseResult& argsresult) ...@@ -496,7 +496,7 @@ int pcd2lasByStationFiles(const cxxopts::ParseResult& argsresult)
using boost::filesystem::exists; using boost::filesystem::exists;
using boost::filesystem::is_regular_file; using boost::filesystem::is_regular_file;
constexpr const const char* currentmode = "pcd2las.stationfiles"; constexpr const char* currentmode = "pcd2las.stationfiles";
//("pcdfile", "输入pcd文件路径", cxxopts::value<std::string>()) //("pcdfile", "输入pcd文件路径", cxxopts::value<std::string>())
//("lasfile", "输出las文件路径", cxxopts::value<std::string>()) //("lasfile", "输出las文件路径", cxxopts::value<std::string>())
...@@ -533,8 +533,9 @@ int pcd2lasByStationFiles(const cxxopts::ParseResult& argsresult) ...@@ -533,8 +533,9 @@ int pcd2lasByStationFiles(const cxxopts::ParseResult& argsresult)
return -1; return -1;
} }
temp = argsresult["jd_station_file"].as<std::string>(); 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), sys_err_code);
if (sys_err_code.failed() || !exists(jd_stationfilepath) || !is_regular_file(jd_stationfilepath)) auto jd_stationfilepath = system_complete(path(temp));
if (!exists(jd_stationfilepath) || !is_regular_file(jd_stationfilepath))
{ {
std::cout << "ERROR:" << currentmode << " 找不到京东站心文件:" << jf_stationfilepath.string() << " DETAIL:" << sys_err_code.message() << std::endl; std::cout << "ERROR:" << currentmode << " 找不到京东站心文件:" << jf_stationfilepath.string() << " DETAIL:" << sys_err_code.message() << std::endl;
return -1; return -1;
...@@ -547,8 +548,8 @@ int pcd2lasByStationFiles(const cxxopts::ParseResult& argsresult) ...@@ -547,8 +548,8 @@ int pcd2lasByStationFiles(const cxxopts::ParseResult& argsresult)
return -1; return -1;
} }
//path pcd_filepath(temp); //path pcd_filepath(temp);
auto pcd_filepath = system_complete(path(temp), sys_err_code); auto pcd_filepath = system_complete(path(temp));
if (sys_err_code.failed() || !exists(pcd_filepath) || !is_regular_file(pcd_filepath)) if (!exists(pcd_filepath) || !is_regular_file(pcd_filepath))
{ {
std::cout << "ERROR:" << currentmode << " 指定pcd文件错误:" << jf_stationfilepath.string() << " DETAIL:" << sys_err_code.message() << std::endl; std::cout << "ERROR:" << currentmode << " 指定pcd文件错误:" << jf_stationfilepath.string() << " DETAIL:" << sys_err_code.message() << std::endl;
return -1; return -1;
...@@ -560,8 +561,8 @@ int pcd2lasByStationFiles(const cxxopts::ParseResult& argsresult) ...@@ -560,8 +561,8 @@ int pcd2lasByStationFiles(const cxxopts::ParseResult& argsresult)
std::cout << "ERROR: " << currentmode << " 未指定输入las文件" << std::endl; std::cout << "ERROR: " << currentmode << " 未指定输入las文件" << std::endl;
return -1; return -1;
} }
auto las_filepath = system_complete(path(temp), sys_err_code); auto las_filepath = system_complete(path(temp));
if (!sys_err_code.failed() && exists(las_filepath) && is_regular_file(las_filepath)) if (exists(las_filepath) && is_regular_file(las_filepath))
{ {
std::cout << "INFO:" << currentmode << " 指定输出las文件已存在,将覆盖原文件 " << las_filepath.string() << std::endl; std::cout << "INFO:" << currentmode << " 指定输出las文件已存在,将覆盖原文件 " << las_filepath.string() << std::endl;
//return -1; //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