safe.gis.test.test_geodesy module

class safe.gis.test.test_geodesy.TestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]
testBearingEast()[source]

Bearing due west (270 deg) is correct within double precision

testBearingNorth()[source]

Bearing due north (0 deg) correct within double precision

testBearingSouth()[source]

Bearing due south (180 deg) is correct within double precision

testBearingWest()[source]

Bearing due west (270 deg) is correct within double precision

testEarthquake2Muncar()[source]

Distance and bearing of real example (quake -> Muncar) are correct

testRSISE2Home()[source]

Distance and bearing of real example (RSISE -> Home) are correct

testRSISE2Kobenhavn()[source]

Distance and bearing of real example (RSISE -> Kbh) are correct

testRSISE2Nadi()[source]

Distance and bearing of real example (RSISE -> Nadi) are correct

testRSISE2Sydney()[source]

Distance and bearing of real example (RSISE -> Syd) are correct

test_equator_example()[source]

Distance and bearing of real example (near equator) are correct

test_generate_circle()[source]

A circle with a given radius can be generated correctly