Skip to content

Commit

Permalink
WIP for #805
Browse files Browse the repository at this point in the history
  • Loading branch information
banesullivan committed Apr 8, 2022
1 parent 88cb078 commit f809ba5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 9 additions & 1 deletion sources/gdal/large_image_source_gdal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down Expand Up @@ -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 = {
Expand Down
1 change: 0 additions & 1 deletion sources/mapnik/large_image_source_mapnik/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit f809ba5

Please sign in to comment.