[sextante] commented out loadfromDict method

This commit is contained in:
Victor Olaya 2013-02-21 21:54:23 +01:00
parent 2890dfd5d1
commit 630745ba98
3 changed files with 13 additions and 9 deletions

View File

@ -17,7 +17,7 @@
***************************************************************************
"""
from sextante.core.Sextante import runalg, runandload, alghelp, alglist, algoptions, load, loadFromAlg, \
from sextante.core.Sextante import runalg, runandload, alghelp, alglist, algoptions, load, \
extent, getObjectFromName, getObjectFromUri, getobject, getfeatures
__author__ = 'Victor Olaya'

View File

@ -156,10 +156,12 @@ class QGisLayers:
return qgslayer
@staticmethod
def loadFromDict(layersdict, crs):
for name in layersdict.keys():
QGisLayers.load(layersdict[name], name, crs)
#===========================================================================
# @staticmethod
# def loadFromDict(layersdict, crs = None):
# for name in layersdict.keys():
# QGisLayers.load(layersdict[name], name, crs)
#===========================================================================
@staticmethod

View File

@ -430,7 +430,9 @@ def load(path):
def getfeatures(layer):
return QGisLayers.features(layer)
def loadFromAlg(layersdict):
'''Load all layer resulting from a given algorithm.
Layers are passed as a dictionary, obtained from alg.getOutputValuesAsDictionary()'''
QGisLayers.loadFromDict(layersdict)
#===============================================================================
# def loadFromAlg(layersdict):
# '''Load all layer resulting from a given algorithm.
# Layers are passed as a dictionary, obtained from alg.getOutputValuesAsDictionary()'''
# QGisLayers.loadFromDict(layersdict)
#===============================================================================