asmaloney / asmaloney/libE57Format
E57Exception: element value out of min/max bounds (ErrorValueOutOfBounds)
- Dominant language
- C++
- Stars
- 191
- Forks
- 82
- Avg merge
- 7h 21m
- Merged PRs (30d)
- 1
Description
I am using `Data3DPointsDouble` and trying to write any intensity value >= 266 causes `E57Exception: element value out of min/max bounds (ErrorValueOutOfBounds)`.
Can anyone explain this? I do not see this documented anywhere.
Moreover, if I set `intensityLimits.intensityMinimum` and `intensityLimits.intensityMaximum` to min/max based on the data, it **still fails**. However, if I set `intensityLimits.intensityMinimum` to 0 but `intensityLimits.intensityMaximum` to actual max, it **works**. Seem like a pretty random behavior to me and I managed to fix it only by chance.
Contributor guide
Research direction
Start with the Data3DPointsDouble intensity handling and the intensityLimits validation, then reproduce the failure at an intensity of 266 or higher. Trace how the minimum and maximum are checked against the E57 field constraints; done means the cause of the bounds error is established and the behavior or its documentation is corrected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100