| 429 | } |
| 430 | |
| 431 | static int GetEPSGCode(OGRSpatialReference &oSRS) |
| 432 | { |
| 433 | int nEPSG = 0; |
| 434 | auto pszEPSG = oSRS.GetAuthorityCode("PROJCS"); |
| 435 | if (pszEPSG == nullptr) |
| 436 | { |
| 437 | pszEPSG = oSRS.GetAuthorityCode("GEOGCS"); |
| 438 | } |
| 439 | if (pszEPSG == nullptr) |
| 440 | { |
| 441 | pszEPSG = oSRS.GetAuthorityCode("VERT_CS"); |
| 442 | } |
| 443 | if (pszEPSG != nullptr) |
| 444 | { |
| 445 | nEPSG = atoi(pszEPSG); |
| 446 | } |
| 447 | return nEPSG; |
| 448 | } |
| 449 | |
| 450 | // Test exportVertCSToPanorama |
| 451 | TEST_F(test_osr, exportVertCSToPanorama) |
no test coverage detected