Skip to content
Permalink
Browse files
[processing] fixes cmake for lastools, removes the interface module a…
…nd adds import iface module where lacking
  • Loading branch information
slarosa committed May 21, 2014
1 parent 4988bc5 commit 470431d6b41c1f28e84ed6fcb5d477be11755d2d
@@ -34,7 +34,6 @@
from PyQt4.QtGui import *
from qgis.utils import iface

from processing import interface
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.ProcessingConfig import ProcessingConfig
from processing.core.ProcessingLog import ProcessingLog
@@ -1,3 +1,3 @@
FILE(GLOB PY_FILES *.py)

PLUGIN_INSTALL(processing ./lidar/lastools ${PY_FILES})
PLUGIN_INSTALL(processing ./algs/lidar/lastools ${PY_FILES})
@@ -33,7 +33,6 @@

from qgis.core import *

from processing import interface
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.ProcessingLog import ProcessingLog
from processing.parameters.ParameterVector import ParameterVector
@@ -32,7 +32,6 @@

from qgis.core import *

from processing import interface
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.ProcessingLog import ProcessingLog
from processing.parameters.ParameterVector import ParameterVector
@@ -31,8 +31,8 @@
from PyQt4.QtCore import *

from qgis.core import *
from qgis.utils import iface

from processing import interface
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.ProcessingLog import ProcessingLog
from processing.parameters.ParameterExtent import ParameterExtent
@@ -71,7 +71,7 @@ def processAlgorithm(self, progress):

fields = QgsFields()
fields.append(QgsField('id', QVariant.Int, '', 10, 0))
mapCRS = interface.iface.mapCanvas().mapSettings().destinationCrs()
mapCRS = iface.mapCanvas().mapSettings().destinationCrs()
writer = self.getOutputFromName(self.OUTPUT).getVectorWriter(
fields, QGis.WKBPoint, mapCRS)

@@ -32,7 +32,6 @@

from qgis.core import *

from processing import interface
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.ProcessingLog import ProcessingLog
from processing.parameters.ParameterVector import ParameterVector
@@ -32,7 +32,6 @@

from qgis.core import *

from processing import interface
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.ProcessingLog import ProcessingLog
from processing.parameters.ParameterVector import ParameterVector
@@ -32,7 +32,6 @@

from qgis.core import *

from processing import interface
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.ProcessingLog import ProcessingLog
from processing.parameters.ParameterVector import ParameterVector

0 comments on commit 470431d

Please sign in to comment.