fix spatial dateline queries (#237)