(codeSpec)
| 478 | } |
| 479 | |
| 480 | static get(codeSpec) { |
| 481 | for (const key in CRS) { |
| 482 | if (CRS.hasOwnProperty(key)) { |
| 483 | if (CRS[key].getEpsgCode && CRS[key].getEpsgCode() === codeSpec) { |
| 484 | return CRS[key]; |
| 485 | } |
| 486 | } |
| 487 | } |
| 488 | return null; |
| 489 | } |
| 490 | |
| 491 | static set(crs) { |
| 492 | const key = crs.getEpsgCode().replace(':', '').toUpperCase(); |
no test coverage detected