Could you use ```projection_domain.equals(domain_in_crs)``` (or equivalent using boundaries)? ```equals``` might be more efficient.