This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ConvertWGS84ToWCONGNAMUL converts coordinates from WGS84 to WCONGNAMUL. | |
| func ConvertWGS84ToWCONGNAMUL(lat, long float64) WCONGNAMULCoord { | |
| x, y := transformWGS84ToKoreaTM(6378137, 0.0033528106647474805, 500000, 200000, 1, 38, 127, lat, long) | |
| x = math.Round(x * 2.5) | |
| y = math.Round(y * 2.5) | |
| return WCONGNAMULCoord{X: x, Y: y} | |
| } | |
| // transformWGS84ToKoreaTM conversion | |
| func transformWGS84ToKoreaTM(d, e, h, f, c, l, m, lat, lon float64) (float64, float64) { |
OlderNewer