Beispiel #1
0
 def test_helpers(self):
     p = gpstk.cartesian(100, 200, 300)
     self.assertEqual(gpstk.Position.Cartesian, p.getCoordinateSystem())
     p = gpstk.spherical(45, 60, 100000, model=gpstk.PZ90Ellipsoid())
     self.assertEqual(gpstk.Position.Spherical, p.getCoordinateSystem())
     p = gpstk.geodetic(frame=gpstk.ReferenceFrame('WGS84'))
     self.assertEqual(gpstk.Position.Geodetic, p.getCoordinateSystem())
     p = gpstk.geocentric(latitude=60, radius=10000)
     self.assertEqual(gpstk.Position.Geocentric, p.getCoordinateSystem())
Beispiel #2
0
 def test_helpers(self):
     p = gpstk.cartesian(100, 200, 300)
     self.assertEqual(gpstk.Position.Cartesian, p.getCoordinateSystem())
     p = gpstk.spherical(45, 60, 100000, model=gpstk.PZ90Ellipsoid())
     self.assertEqual(gpstk.Position.Spherical, p.getCoordinateSystem())
     p = gpstk.geodetic(frame=gpstk.ReferenceFrame('WGS84'))
     self.assertEqual(gpstk.Position.Geodetic, p.getCoordinateSystem())
     p = gpstk.geocentric(latitude=60, radius=10000)
     self.assertEqual(gpstk.Position.Geocentric, p.getCoordinateSystem())