Пример #1
0
    def test_gcp_extras(self):
        gcp = GCPFile('tests/assets/gcp_extras.txt')
        self.assertEqual(gcp.get_entry(0).extras, 'gcp1')

        copy = GCPFile(gcp.create_utm_copy("tests/assets/output/gcp_utm_no_extras.txt", include_extras=False))
        self.assertTrue(copy.exists())
        self.assertEqual(copy.get_entry(0).extras, '')
Пример #2
0
 def test_utm_conversion_feet(self):
     gcp = GCPFile("tests/assets/gcp_michigan_feet_valid.txt")
     copy = GCPFile(gcp.create_utm_copy("tests/assets/output/gcp_utm_z.txt"))
     self.assertTrue(copy.exists())
     self.assertEqual(copy.raw_srs, "WGS84 UTM 16N")
     self.assertEqual(round(copy.get_entry(0).x, 3), 609925.818)
     self.assertEqual(round(copy.get_entry(0).y, 3), 4950688.772)
     self.assertEqual(round(copy.get_entry(0).z, 3), 171.663)
Пример #3
0
 def test_utm_conversion(self):
     gcp = GCPFile("tests/assets/gcp_latlon_valid.txt")
     copy = GCPFile(gcp.create_utm_copy("tests/assets/output/gcp_utm.txt"))
     self.assertTrue(copy.exists())
     self.assertEqual(copy.raw_srs, "WGS84 UTM 16N")
     self.assertEqual(copy.get_entry(0).x, 609865.707705)
     self.assertEqual(copy.get_entry(0).y, 4950688.36182)