diff --git a/sources/gdal/large_image_source_gdal/__init__.py b/sources/gdal/large_image_source_gdal/__init__.py index 708adbdd2..ca9a8943c 100644 --- a/sources/gdal/large_image_source_gdal/__init__.py +++ b/sources/gdal/large_image_source_gdal/__init__.py @@ -91,7 +91,7 @@ class GDALFileTileSource(FileTileSource, metaclass=LruCacheMetaclass): 'image/tiff': SourcePriority.LOW, 'image/x-tiff': SourcePriority.LOW, } - geospatial = True + _geospatial_source = True def __init__(self, path, projection=None, unitsPerPixel=None, **kwargs): """ @@ -566,6 +566,14 @@ def getBandInformation(self, statistics=True, dataset=None, **kwargs): self._bandInfo = infoSet return self._bandInfo + # @property + # def geospatial(self): + # return bool( + # self.dataset.GetProjection() or + # (self.dataset.GetGCPProjection() and self.dataset.GetGCPs()) or + # self.dataset.GetGeoTransform(can_return_null=True) or + # hasattr(self, '_netcdf')) + def getMetadata(self): with self._getDatasetLock: metadata = { diff --git a/sources/mapnik/large_image_source_mapnik/__init__.py b/sources/mapnik/large_image_source_mapnik/__init__.py index 42f90dfe9..61c0dce6f 100644 --- a/sources/mapnik/large_image_source_mapnik/__init__.py +++ b/sources/mapnik/large_image_source_mapnik/__init__.py @@ -71,7 +71,6 @@ class MapnikFileTileSource(GDALFileTileSource, metaclass=LruCacheMetaclass): 'image/tiff': SourcePriority.LOWER, 'image/x-tiff': SourcePriority.LOWER, } - geospatial = True def __init__(self, path, projection=None, unitsPerPixel=None, **kwargs): """