Skip to content
Permalink
Browse files
[sextante] commented out loadfromDict method
  • Loading branch information
volaya committed Feb 24, 2013
1 parent 2890dfd commit 630745ba985f61fd43c027266e9552c319447ef8
Showing with 13 additions and 9 deletions.
  1. +1 −1 python/plugins/sextante/__init__.py
  2. +6 −4 python/plugins/sextante/core/QGisLayers.py
  3. +6 −4 python/plugins/sextante/core/Sextante.py
@@ -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'
@@ -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
@@ -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.