Skip to content

Commit

Permalink
Merge pull request #152 from gee-community/fix_provider_capabilities
Browse files Browse the repository at this point in the history
Fix compatibility for Qgis => 3.38
  • Loading branch information
gena authored Aug 17, 2024
2 parents 35a74fc + 88f9ae1 commit 4a1b2a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,11 @@ def clone(self):

def capabilities(self):
caps = QgsRasterInterface.Size | QgsRasterInterface.Identify | QgsRasterInterface.IdentifyValue
return QgsRasterDataProvider.ProviderCapabilities(caps)

if Qgis.versionInt() >= 33800:
return Qgis.RasterInterfaceCapabilities(caps)
else:
return QgsRasterDataProvider.ProviderCapabilities(caps)

def dataType(self, band_no):
return self.wms.dataType(band_no)
Expand Down

0 comments on commit 4a1b2a7

Please sign in to comment.