method for finding bbox for most geometry types