({ coordinates, sourceProjection, destProjection = 'EPSG:4326', proj4 = proj4FromNpm })
| 61 | } |
| 62 | |
| 63 | export function transformCoodinates({ coordinates, sourceProjection, destProjection = 'EPSG:4326', proj4 = proj4FromNpm }) { |
| 64 | try { |
| 65 | return proj4(sourceProjection, destProjection, coordinates); |
| 66 | } catch (error) { |
| 67 | throw `${error} is not defined`; |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | export function getEpsgCodeInfo(epsgCode, iPortalUrl) { |
| 72 | const espgNum = epsgCode.replace(/^EPSG:/, ''); |
no outgoing calls
no test coverage detected