Example #1
0
    def test_geoid_to_ellipsoid(self):
        coords = np.array([[5.0, 50.0, 300.0], [2, 54, 300], [50, 5, 300]])
        geoid = georef.get_earth_projection("geoid")
        ellipsoid = georef.get_earth_projection("ellipsoid")
        newcoords = georef.reproject(
            coords, projection_source=geoid, projection_target=ellipsoid
        )
        assert np.any(np.not_equal(coords[..., 2], newcoords[..., 2]))

        newcoords = georef.reproject(
            newcoords, projection_source=ellipsoid, projection_target=geoid
        )
        np.testing.assert_allclose(coords, newcoords)
Example #2
0
 def test_get_earth_projection(self):
     georef.get_earth_projection("ellipsoid")
     georef.get_earth_projection("geoid")
     georef.get_earth_projection("sphere")
Example #3
0
 def test_get_earth_projection(self):
     georef.get_earth_projection()
     georef.get_earth_projection(geoid=True)
     georef.get_earth_projection(sphere=True)