| 125 | |
| 126 | |
| 127 | std::string SpatialReference::identifyHorizontalEPSG() const |
| 128 | { |
| 129 | OGRScopedSpatialReference srs(ogrCreateSrs(getHorizontal(), m_epoch)); |
| 130 | |
| 131 | if (!srs || srs->AutoIdentifyEPSG() != OGRERR_NONE) |
| 132 | return ""; |
| 133 | |
| 134 | if (const char* c = srs->GetAuthorityCode(nullptr)) |
| 135 | return std::string(c); |
| 136 | |
| 137 | return ""; |
| 138 | } |
| 139 | |
| 140 | |
| 141 | std::string SpatialReference::identifyVerticalEPSG() const |