* \brief Get the authority code for a node. * * This function is the same as OGRSpatialReference::GetAuthorityCode(). */
| 8735 | * This function is the same as OGRSpatialReference::GetAuthorityCode(). |
| 8736 | */ |
| 8737 | const char *OSRGetAuthorityCode(OGRSpatialReferenceH hSRS, |
| 8738 | const char *pszTargetKey) |
| 8739 | |
| 8740 | { |
| 8741 | VALIDATE_POINTER1(hSRS, "OSRGetAuthorityCode", nullptr); |
| 8742 | |
| 8743 | return ToPointer(hSRS)->GetAuthorityCode(pszTargetKey); |
| 8744 | } |
| 8745 | |
| 8746 | /************************************************************************/ |
| 8747 | /* GetAuthorityName() */ |