getting bbox for query