File tree Expand file tree Collapse file tree
tests/gis_tests/gdal_tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66from pathlib import Path
77from unittest import mock
88
9- from django .contrib .gis .gdal import GDALRaster , SpatialReference
9+ from django .contrib .gis .gdal import GDAL_VERSION , GDALRaster , SpatialReference
1010from django .contrib .gis .gdal .error import GDALException
1111from django .contrib .gis .gdal .raster .band import GDALBand
1212from django .contrib .gis .shortcuts import numpy
@@ -406,6 +406,8 @@ def test_raster_info_accessor(self):
406406 self .assertIn ("NAD83 / Florida GDL Albers" , infos )
407407
408408 def test_compressed_file_based_raster_creation (self ):
409+ if GDAL_VERSION > (3 , 4 ):
410+ self .skipTest ("GDAL_PIXEL_TYPES are missing types from GDAL 3.5+." )
409411 rstfile = tempfile .NamedTemporaryFile (suffix = ".tif" )
410412 # Make a compressed copy of an existing raster.
411413 compressed = self .rs .warp (
You can’t perform that action at this time.
0 commit comments