Example #1
0
def test_azimuth_to_name_with_south_west():
    geodesic = Geod(ellps='WGS84')
    # lon = x, lat = y
    assert 'South-West Bound' == spatial.map_azimuth_to_name(
        geodesic.inv(lons1=0, lats1=0, lons2=-1, lats2=-1)[0])
Example #2
0
def test_azimuth_to_name_with_east():
    geodesic = Geod(ellps='WGS84')
    # lon = x, lat = y
    assert 'East Bound' == spatial.map_azimuth_to_name(
        geodesic.inv(lons1=0, lats1=0, lons2=1, lats2=0)[0])