to_authorityο
- Equi7Grid_projection.to_authority(auth_name: str | None = None, min_confidence: int = 70)ο
New in version 2.2.0.
Return the authority name and 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_authority() ('EPSG', '4328')
If the CRS is bound, you can get an authority from the source CRS:
>>> from pyproj import CRS >>> ccs = CRS("+proj=geocent +datum=WGS84 +towgs84=0,0,0") >>> ccs.to_authority() >>> ccs.source_crs.to_authority() ('EPSG', '4978') >>> ccs == CRS.from_authorty('EPSG', '4978') False
- Parameters:
auth_name (str, optional) β The name of the authority to filter by.
min_confidence (int, default=70) β A value between 0-100 where 100 is the most confident. min_confidence
- Returns:
The best matching (<auth_name>, <code>) for the confidence level.
- Return type:
tuple(str, str) or None