Parse a string "EPSG:XXXX", "epsg:XXXX", "+init=epsg:XXXX" and return the EPSG code (XXXX).
Definition at line 54 of file projection.cc.
References pism::RuntimeError::add_context(), pism::RuntimeError::formatted(), and PISM_ERROR_LOCATION.
Referenced by epsg_to_cf(), and get_proj_parameters().