Package org.openstreetmap.josm.data.coor

Examples of org.openstreetmap.josm.data.coor.EastNorth.east()


        {
            EastNorth en = new EastNorth(533111.69, 152227.85);
            LatLon ll = Main.getProjection().eastNorth2latlon(en);
            EastNorth en2 = Main.getProjection().latlon2eastNorth(ll);
            if (debug) {
                System.out.println(en.east() - en2.east());
            }
            if (debug) {
                System.out.println(en.north() - en2.north());
            }
            assertTrue("Lausanne", Math.abs(en.east() - en2.east()) < 0.002);
View Full Code Here


                System.out.println(en.east() - en2.east());
            }
            if (debug) {
                System.out.println(en.north() - en2.north());
            }
            assertTrue("Lausanne", Math.abs(en.east() - en2.east()) < 0.002);
            assertTrue("Lausanne", Math.abs(en.north() - en2.north()) < 0.002);
        }

        {
            EastNorth en = new EastNorth(685544.16, 292782.91);
View Full Code Here

        {
            EastNorth en = new EastNorth(685544.16, 292782.91);
            LatLon ll = Main.getProjection().eastNorth2latlon(en);
            EastNorth en2 = Main.getProjection().latlon2eastNorth(ll);
            if (debug) {
                System.out.println(en.east() - en2.east());
            }
            if (debug) {
                System.out.println(en.north() - en2.north());
            }
            assertTrue("Schafouse", Math.abs(en.east() - en2.east()) < 0.002);
View Full Code Here

                System.out.println(en.east() - en2.east());
            }
            if (debug) {
                System.out.println(en.north() - en2.north());
            }
            assertTrue("Schafouse", Math.abs(en.east() - en2.east()) < 0.002);
            assertTrue("Schafouse", Math.abs(en.north() - en2.north()) < 0.002);
        }

        {
            EastNorth en = new EastNorth(833068.04, 163265.39);
View Full Code Here

        {
            EastNorth en = new EastNorth(833068.04, 163265.39);
            LatLon ll = Main.getProjection().eastNorth2latlon(en);
            EastNorth en2 = Main.getProjection().latlon2eastNorth(ll);
            if (debug) {
                System.out.println(en.east() - en2.east());
            }
            if (debug) {
                System.out.println(en.north() - en2.north());
            }
            assertTrue("Grinson", Math.abs(en.east() - en2.east()) < 0.002);
View Full Code Here

                System.out.println(en.east() - en2.east());
            }
            if (debug) {
                System.out.println(en.north() - en2.north());
            }
            assertTrue("Grinson", Math.abs(en.east() - en2.east()) < 0.002);
            assertTrue("Grinson", Math.abs(en.north() - en2.north()) < 0.002);
        }

        {
            EastNorth en = new EastNorth(600000.0, 200000.0);
View Full Code Here

        {
            EastNorth en = new EastNorth(600000.0, 200000.0);
            LatLon ll = Main.getProjection().eastNorth2latlon(en);
            EastNorth en2 = Main.getProjection().latlon2eastNorth(ll);
            if (debug) {
                System.out.println(en.east() - en2.east());
            }
            if (debug) {
                System.out.println(en.north() - en2.north());
            }
            assertTrue("Berne", Math.abs(en.east() - en2.east()) < 0.002);
View Full Code Here

                System.out.println(en.east() - en2.east());
            }
            if (debug) {
                System.out.println(en.north() - en2.north());
            }
            assertTrue("Berne", Math.abs(en.east() - en2.east()) < 0.002);
            assertTrue("Berne", Math.abs(en.north() - en2.north()) < 0.002);
        }

        {
            EastNorth en = new EastNorth(700000.0, 100000.0);
View Full Code Here

        {
            EastNorth en = new EastNorth(700000.0, 100000.0);
            LatLon ll = Main.getProjection().eastNorth2latlon(en);
            EastNorth en2 = Main.getProjection().latlon2eastNorth(ll);
            if (debug) {
                System.out.println(en.east() - en2.east());
            }
            if (debug) {
                System.out.println(en.north() - en2.north());
            }
            assertTrue("Ref", Math.abs(en.east() - en2.east()) < 0.002);
View Full Code Here

                System.out.println(en.east() - en2.east());
            }
            if (debug) {
                System.out.println(en.north() - en2.north());
            }
            assertTrue("Ref", Math.abs(en.east() - en2.east()) < 0.002);
            assertTrue("Ref", Math.abs(en.north() - en2.north()) < 0.002);
        }
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.