22 package org.matsim.core.utils.geometry.transformations;
43 double yNorm = (coord.
getX() - 2600000.0) / 1000000.0;
44 double xNorm = (coord.
getY() - 1200000.0) / 1000000.0;
46 double longitude10000Sec =
49 0.791484 * yNorm * xNorm +
50 0.1306 * yNorm * Math.pow(xNorm, 2) -
51 0.0436 * Math.pow(yNorm, 3);
53 double latitude10000Sec =
56 0.270978 * Math.pow(yNorm, 2) -
57 0.002528 * Math.pow(xNorm, 2) -
58 0.0447 * Math.pow(yNorm, 2) * xNorm -
59 0.0140 * Math.pow(xNorm, 3);
62 return new Coord(longitude10000Sec * 100.0 / 36.0, latitude10000Sec * 100.0 / 36.0, coord.
getZ());
64 return new Coord(longitude10000Sec * 100.0 / 36.0, latitude10000Sec * 100.0 / 36.0);