Fix envelope method now that we've removed Rgeo.