X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.district.network%2Fsrc%2Forg%2Fsimantics%2Fdistrict%2Fnetwork%2FModelledCRS.java;h=55d850e5e9092ebe3a345674a5f838e9ea69d4f8;hb=02ecca5e61d2eb17de40cc058be678b414aaad00;hp=23e68f2b273453c7a2636f2331c2bd417028447c;hpb=1bc60c2213f9b3fc7b4d935ba9afda2b767290e5;p=simantics%2Fdistrict.git diff --git a/org.simantics.district.network/src/org/simantics/district/network/ModelledCRS.java b/org.simantics.district.network/src/org/simantics/district/network/ModelledCRS.java index 23e68f2b..55d850e5 100644 --- a/org.simantics.district.network/src/org/simantics/district/network/ModelledCRS.java +++ b/org.simantics.district.network/src/org/simantics/district/network/ModelledCRS.java @@ -28,12 +28,11 @@ public class ModelledCRS implements CRS { return dist; } - // TODO: these only work with Spherical Mercator public static double xToLongitude(double x) { return x; } - + public static double yToLatitude(double y) { double rad = Math.toRadians(y); double sinh = Math.sinh(rad); @@ -41,7 +40,7 @@ public class ModelledCRS implements CRS { double finald = Math.toDegrees(atan); return finald; } - + public static double longitudeToX(double lon) { return lon; }