

def test_geotransform_and_friends(self):
    self.assertEqual(self.rs.geotransform, [511700.4680706557, 100.0, 0.0, 435103.3771231986, 0.0, (- 100.0)])
    self.assertEqual(self.rs.origin, [511700.4680706557, 435103.3771231986])
    self.assertEqual(self.rs.origin.x, 511700.4680706557)
    self.assertEqual(self.rs.origin.y, 435103.3771231986)
    self.assertEqual(self.rs.scale, [100.0, (- 100.0)])
    self.assertEqual(self.rs.scale.x, 100.0)
    self.assertEqual(self.rs.scale.y, (- 100.0))
    self.assertEqual(self.rs.skew, [0, 0])
    self.assertEqual(self.rs.skew.x, 0)
    self.assertEqual(self.rs.skew.y, 0)
    rsmem = GDALRaster(JSON_RASTER)
    rsmem.geotransform = range(6)
    self.assertEqual(rsmem.geotransform, [float(x) for x in range(6)])
    self.assertEqual(rsmem.origin, [0, 3])
    self.assertEqual(rsmem.origin.x, 0)
    self.assertEqual(rsmem.origin.y, 3)
    self.assertEqual(rsmem.scale, [1, 5])
    self.assertEqual(rsmem.scale.x, 1)
    self.assertEqual(rsmem.scale.y, 5)
    self.assertEqual(rsmem.skew, [2, 4])
    self.assertEqual(rsmem.skew.x, 2)
    self.assertEqual(rsmem.skew.y, 4)
    self.assertEqual(self.width, 5)
    self.assertEqual(rsmem.height, 5)

dataset/ETHPy150Open django/django/tests/gis_tests/gdal_tests/test_raster.py GDALRasterTests.test_geotransform_and_friends/VarMisuse@351/444 `rsmem`->`self`