mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
12 lines
446 B
Python
12 lines
446 B
Python
from sextante.outputs.Output import Output
|
|
|
|
class OutputVector(Output):
|
|
|
|
def getFileFilter(self,alg):
|
|
exts = alg.provider.getSupportedOutputVectorLayerExtensions()
|
|
for i in range(len(exts)):
|
|
exts[i] = exts[i].upper() + " files(*." + exts[i].lower() + ")"
|
|
return ";;".join(exts)
|
|
|
|
def getDefaultFileExtension(self, alg):
|
|
return alg.provider.getSupportedOutputVectorLayerExtensions()[0] |