avoid taking const& to a copy (which is what is returned from geom.envelope() currently)