! could maybe run something equivalent to fillPercentiles to calculate on the fly, but that would ! entail looping thru m_valBins multiple times. Not sure which is better
| 199 | //!! could maybe run something equivalent to fillPercentiles to calculate on the fly, but that would |
| 200 | //!! entail looping thru m_valBins multiple times. Not sure which is better |
| 201 | double *GDALGrid::pctlData(int pct) const |
| 202 | { |
| 203 | auto it = m_pctls.find(pct); |
| 204 | if ((it != m_pctls.end()) && m_valBins.size()) |
| 205 | return it->second->data(); |
| 206 | return nullptr; |
| 207 | } |
| 208 | |
| 209 | |
| 210 | GDALGrid::Cell GDALGrid::pointToCell(const Point& p) |