private void translateSwitch() { int swtchlen = subs.SwitchEntities.Length; double xD = 0; double yD = 0; for (int i = 0; i < swtchlen; i++) { UTMtoDec.ToLatLon(subs.SwitchEntities[i].X, subs.SwitchEntities[i].Y, 34, out xD, out yD); subs.SwitchEntities[i].X = xD; subs.SwitchEntities[i].Y = yD; } }
private void translateNodes() { int nodlen = subs.NodesEntities.Length; double xD = 0; double yD = 0; for (int i = 0; i < nodlen; i++) { UTMtoDec.ToLatLon(subs.NodesEntities[i].X, subs.NodesEntities[i].Y, 34, out xD, out yD); subs.NodesEntities[i].X = xD; subs.NodesEntities[i].Y = yD; } }
private void translatePoint() { int linelen = subs.LineEntities.Length; int linepointlen = 0; double xD = 0; double yD = 0; for (int i = 0; i < linelen; i++) { linepointlen = subs.LineEntities[i].Vertices.Length; for (int j = 0; j < linepointlen; j++) { UTMtoDec.ToLatLon(subs.LineEntities[i].Vertices[j].X, subs.LineEntities[i].Vertices[j].Y, 34, out xD, out yD); subs.LineEntities[i].Vertices[j].X = xD; subs.LineEntities[i].Vertices[j].Y = yD; } } }