zhongrj
2025-11-25 b0e015d4fbae51c63e975f79ff9b8472f3ef0f10
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)