mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
[sextante] commented out loadfromDict method
This commit is contained in:
parent
2890dfd5d1
commit
630745ba98
@ -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 @@ 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
|
||||
|
@ -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)
|
||||
#===============================================================================
|
||||
|
Loading…
x
Reference in New Issue
Block a user