Exemple #1
0
 def getSupportedOutputRasterLayerExtensions():   
     allexts = ["tif"]
     for exts in GdalUtils.getSupportedRasters().values():
         for ext in exts:
             if ext not in allexts:
                 allexts.append(ext)
     return allexts             
Exemple #2
0
 def getSupportedOutputRasterLayerExtensions():
     allexts = ["tif"]
     for exts in GdalUtils.getSupportedRasters().values():
         for ext in exts:
             if ext not in allexts:
                 allexts.append(ext)
     return allexts
 def getFormatShortNameFromFilename(self, filename):
     ext = filename[filename.rfind(".") + 1:]
     supported = GdalUtils.getSupportedRasters()
     for name in supported.keys():
         exts = supported[name]
         if ext in exts:
             return name
     return "GTiff"
 def getFormatShortNameFromFilename(self, filename):
     ext = filename[filename.rfind(".")+1:]
     supported = GdalUtils.getSupportedRasters()
     for name in supported.keys():
         exts = supported[name]
         if ext in exts:
             return name
     return "GTiff"