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
d14afb3e
Commit
d14afb3e
authored
Jan 08, 2021
by
xuebingbing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
降低boost版本api
parent
118014fd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
main.cpp
src/jfhdconvertor/main.cpp
+6
-7
No files found.
src/jfhdconvertor/main.cpp
View file @
d14afb3e
...
...
@@ -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;
...
...
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