| 153 | } |
| 154 | |
| 155 | void Header::setPointsByReturn(int returnNum, uint64_t pointCount) |
| 156 | { |
| 157 | ePointsByReturn[returnNum] = pointCount; |
| 158 | if (returnNum < LegacyReturnCount) |
| 159 | { |
| 160 | bool condition = (pointCount <= (std::numeric_limits<uint32_t>::max)()) && |
| 161 | !((versionMinor >= 4) && (pointFormat() >= 6) ); |
| 162 | |
| 163 | legacyPointsByReturn[returnNum] = condition ? (uint32_t)pointCount : 0; |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | } // namespace las |
| 168 | } // namespace pdal |