def test_get_xyz_from_ll(self):

        projected = Point(5., 6., 0.)
        reference = Point(4., 6., 0.)
        xs, ys, zs = get_xyz_from_ll(projected, reference)
        # The value used for this test is computed using this website
        # http://www.movable-type.co.uk/scripts/latlong.html
        self.assertAlmostEqual(xs, 111.2, delta=2.0)
        self.assertAlmostEqual(ys, 0.1, delta=2.0)
        self.assertAlmostEqual(zs, 0.0, delta=2.0)
Example #2
0
    def test_get_xyz_from_ll(self):

        projected = Point(5., 6., 0.)
        reference = Point(4., 6., 0.)
        xs, ys, zs = get_xyz_from_ll(projected, reference)
        # The value used for this test is computed using this website
        # http://www.movable-type.co.uk/scripts/latlong.html
        self.assertAlmostEqual(xs, 111.2, delta=2.0)
        self.assertAlmostEqual(ys, 0.1, delta=2.0)
        self.assertAlmostEqual(zs, 0.0, delta=2.0)