Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lozac'h Loic
AgriSoilMoisture
Commits
98db5844
Commit
98db5844
authored
Jan 24, 2020
by
Lozac'h Loic
Browse files
DEBUG: cast
parent
54016089
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/otbApplyCsvLabelsFile.cxx
View file @
98db5844
...
...
@@ -91,8 +91,8 @@ private:
std
::
vector
<
std
::
string
>
vec
;
boost
::
algorithm
::
split
(
vec
,
line
,
boost
::
is_any_of
(
";"
));
label
=
(
uint32
)
vec
[
0
];
moist
=
(
float
)
vec
[
5
];
label
=
std
::
stoi
(
vec
[
0
]
)
;
moist
=
std
::
stof
(
vec
[
5
]
)
;
dataList
.
insert
({
label
,
moist
});
}
// Close the File
...
...
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