Skip to content

Commit

Permalink
[processing] fixes cmake for lastools, removes the interface module a…
Browse files Browse the repository at this point in the history
…nd adds import iface module where lacking
  • Loading branch information
slarosa committed May 21, 2014
1 parent 4988bc5 commit 470431d
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 9 deletions.
1 change: 0 additions & 1 deletion python/plugins/processing/algs/grass/GrassAlgorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FILE(GLOB PY_FILES *.py)

PLUGIN_INSTALL(processing ./lidar/lastools ${PY_FILES})
PLUGIN_INSTALL(processing ./algs/lidar/lastools ${PY_FILES})
1 change: 0 additions & 1 deletion python/plugins/processing/algs/qgis/PointsToPaths.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/qgis/RandomPointsExtent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/qgis/RandomPointsLayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 470431d

Please sign in to comment.