zhongrj
2025-11-25 b89962006164a462404b79a738bee8cbb6d7fe7e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from django.contrib.gis.gdal import GDALRaster
 
from .classes import BootTestCase
import os
 
class TestApi(BootTestCase):
    def setUp(self):
        pass
 
    def tearDown(self):
        pass
 
    def test_gdal_functions(self):
        raster = GDALRaster(os.path.join("app", "fixtures", "orthophoto.tif"))
 
        self.assertTrue(raster.srid == 32615)
        self.assertTrue(raster.width == 212)