EZP-22912: fix bounding box calculation when pole(s) included