Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
fmt_converter
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xuebingbing
fmt_converter
Commits
118014fd
Commit
118014fd
authored
Jan 08, 2021
by
xuebingbing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix boost 版本高的api到 低版本
parent
8c71bcf1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
main.cpp
src/jfhdconvertor/main.cpp
+8
-7
No files found.
src/jfhdconvertor/main.cpp
View file @
118014fd
...
@@ -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
c
onst
c
har
*
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;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment