Skip to content

Commit

Permalink
[sextante] commented out loadfromDict method
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Feb 24, 2013
1 parent 2890dfd commit 630745b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion python/plugins/sextante/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
10 changes: 6 additions & 4 deletions python/plugins/sextante/core/QGisLayers.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,12 @@ def load(fileName, name = None, crs = None, style = None):

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
Expand Down
10 changes: 6 additions & 4 deletions python/plugins/sextante/core/Sextante.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
#===============================================================================

0 comments on commit 630745b

Please sign in to comment.