Esempio n. 1
0
 def test_get_coord_four(self):
     geod = Geodetic()
     z = 21
     x = 599188
     y = 749975
     lon, lat = geod.get_coord(z, x, y)
     lon = geod.truncate(lon)
     lat = geod.truncate(lat)
     assert float(lon) == -77.1425628 and \
         float(lat) == 38.7417411
Esempio n. 2
0
 def test_get_coord_three(self):
     geod = Geodetic()
     z = 21
     x = 599187
     y = 749974
     lon, lat = geod.get_coord(z, x, y)
     lon = geod.truncate(lon)
     lat = geod.truncate(lat)
     assert float(lon) == -77.1427345 and \
         float(lat) == 38.7415695
Esempio n. 3
0
 def test_get_coord_two(self):
     geod = Geodetic()
     z = x = y = 1
     lon, lat = geod.get_coord(z, x, y)
     assert lon == 0.0 and lat == 90.0
Esempio n. 4
0
 def test_get_coord_one(self):
     geod = Geodetic()
     z = 1
     x = y = 0
     lon, lat = geod.get_coord(z, x, y)
     assert lon == -180.0 and lat == -90.0