range aggregate processing spatial databases