this.latColumn = spatialIndex.firstSpatialArgument();
this.lonColumn = latColumn + 1;
API.Ordering zOrdering = new API.Ordering();
IndexRowType rowType = keyRange.indexRowType().physicalRowType();
for (int f = 0; f < rowType.nFields(); f++) {
zOrdering.append(new TPreparedField(rowType.typeAt(f), f), true);
}
// The index column selector needs to select all the columns before the z column, and the z column itself.
this.indexColumnSelector = new IndexRowPrefixSelector(this.latColumn + 1);
for (IndexKeyRange zKeyRange : zKeyRanges(context, keyRange)) {
IterationHelper rowState = adapter.createIterationHelper(keyRange.indexRowType());