Check consistency of the "mapping" variable with the EPSG code in the proj string.
If the consistency check fails, throws RuntimeError explaining the failure. Fails if info.proj
does not use an EPSG code.
Definition at line 136 of file projection.cc.
References pism::VariableMetadata::all_doubles(), pism::VariableMetadata::all_strings(), epsg_to_cf(), pism::RuntimeError::formatted(), pism::VariableMetadata::get_number(), pism::VariableMetadata::has_attribute(), pism::VariableMetadata::has_attributes(), pism::MappingInfo::mapping, PISM_ERROR_LOCATION, pism::MappingInfo::proj, and pism::VariableMetadata::unit_system().
Referenced by get_projection_info().