List<IndexKeyRange> zKeyRanges = new ArrayList<>();
Index index = keyRange.indexRowType().index();
IndexBound loBound = keyRange.lo();
IndexBound hiBound = keyRange.hi();
ValueRecord loExpressions = loBound.boundExpressions(context, bindings);
ValueRecord hiExpressions = hiBound.boundExpressions(context, bindings);
// Only 2d, lat/lon supported for now
double xLo, xHi, yLo, yHi;
TInstance xinst = index.getAllColumns().get(latColumn).getColumn().getType();
TInstance yinst = index.getAllColumns().get(lonColumn).getColumn().getType();
xLo = TBigDecimal.getWrapper(loExpressions.value(latColumn), xinst).asBigDecimal().doubleValue();