fixed transformation of node slice

master
Oliver Tonnhofer 2013-05-10 10:08:00 +02:00
parent 1a4a137a8e
commit f87e5285d1
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ func mercToWgs(x, y float64) (long, lat float64) {
}
func NodesToMerc(nodes []element.Node) {
for _, nd := range nodes {
nd.Long, nd.Lat = wgsToMerc(nd.Long, nd.Lat)
for i, nd := range nodes {
nodes[i].Long, nodes[i].Lat = wgsToMerc(nd.Long, nd.Lat)
}
}