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
7e26a709
Commit
7e26a709
authored
Apr 07, 2021
by
xuebingbing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 当转换pcd到las经度小渝1e-2时报出警告信息;
2 完善说明文件
parent
91b3d007
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletion
+15
-1
readme.md
readme.md
+4
-0
convertor.cpp
src/jfhdconvert/convertor.cpp
+7
-0
main.cpp
src/jfhdconvertor/main.cpp
+4
-1
No files found.
readme.md
View file @
7e26a709
# 说明文件
## 注意事项
程序导出的las可能会造成经度损失为不可逆的。因为las中保存坐标是将double放大到符合经度的int32保存的。
## 命令行参数
--pcdfile E:/data/jd/1986/1986_1_ground.pcd --lasfile E:/data/jd/1986/1986_1_ground.las --jf_station_file E:/data/jd/1986/1986_station_jf.txt --jd_station_file E:/data/jd/1986/1986_station_jd.txt
...
...
src/jfhdconvert/convertor.cpp
View file @
7e26a709
...
...
@@ -287,6 +287,13 @@ namespace jfhd {
int
y_presion_len
=
get_intpartlen_func
(
max_xyz
[
1
],
y_offset
)
-
kMaxPresionLen
;
int
z_presion_len
=
get_intpartlen_func
(
max_xyz
[
2
],
z_offset
)
-
kMaxPresionLen
;
if
(
x_presion_len
>
-
2
||
y_presion_len
>
-
2
||
z_presion_len
>
-
2
)
{
std
::
stringstream
ss
;
ss
<<
"WARNING:x,y,z double presion less 1e-2, ["
<<
pcdfilepath
<<
"]"
;
*
errormsg
=
ss
.
str
();
}
double
x_scale
=
std
::
pow
(
10.
,
x_presion_len
);
double
y_scale
=
std
::
pow
(
10.
,
y_presion_len
);
double
z_scale
=
std
::
pow
(
10.
,
z_presion_len
);
...
...
src/jfhdconvertor/main.cpp
View file @
7e26a709
...
...
@@ -598,7 +598,10 @@ int pcd2lasByStationFiles(const cxxopts::ParseResult& argsresult)
}
else
{
std
::
cout
<<
"INFO: successed "
<<
pcd_filepath
.
string
()
<<
">>"
<<
las_filepath
.
string
()
<<
std
::
endl
;
std
::
cout
<<
"INFO: successed "
<<
pcd_filepath
.
string
()
<<
">>"
<<
las_filepath
.
string
();
if
(
!
errormsg
.
empty
())
std
::
cout
<<
" DETAIL: "
<<
errormsg
;
std
::
cout
<<
std
::
endl
;
}
return
0
;
...
...
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