Loading [MathJax]/jax/output/HTML-CSS/config.js
PISM, A Parallel Ice Sheet Model 2.2.2-d6b3a29ca committed by Constantine Khrulev on 2025-03-28
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages

◆ parse_epsg()

int pism::parse_epsg ( const std::string &  proj_string)

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().