to_epsg

Equi7Grid_projection.to_epsg(min_confidence: int = 70) int | None

Return the EPSG code best matching the CRS or None if it a match is not found.

Example:

>>> from pyproj import CRS
>>> ccs = CRS("EPSG:4328")
>>> ccs.to_epsg()
4328

If the CRS is bound, you can attempt to get an epsg code from the source CRS:

>>> from pyproj import CRS
>>> ccs = CRS("+proj=geocent +datum=WGS84 +towgs84=0,0,0")
>>> ccs.to_epsg()
>>> ccs.source_crs.to_epsg()
4978
>>> ccs == CRS.from_epsg(4978)
False
Parameters:

min_confidence (int, default=70) – A value between 0-100 where 100 is the most confident. min_confidence

Returns:

The best matching EPSG code matching the confidence level.

Return type:

Optional[int]