Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a bunch of missing QgsProcessingUtils imports
  • Loading branch information
nyalldawson committed May 2, 2017
1 parent e709e3e commit 4ed18b1
Show file tree
Hide file tree
Showing 39 changed files with 88 additions and 36 deletions.
1 change: 1 addition & 0 deletions python/plugins/processing/algs/gdal/ClipByMask.py
Expand Up @@ -30,6 +30,7 @@

from qgis.PyQt.QtGui import QIcon

from qgis.core import QgsProcessingUtils
from osgeo import gdal

from processing.core.parameters import (ParameterRaster,
Expand Down
2 changes: 2 additions & 0 deletions python/plugins/processing/algs/gdal/rasterize_over.py
Expand Up @@ -28,6 +28,8 @@

import os

from qgis.core import QgsProcessingUtils

from qgis.PyQt.QtGui import QIcon

from processing.core.parameters import ParameterVector
Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/grass7/nviz7.py
Expand Up @@ -33,7 +33,8 @@

from qgis.PyQt.QtGui import QIcon
from qgis.core import (QgsProcessingAlgorithm,
QgsRasterLayer)
QgsRasterLayer,
QgsProcessingUtils)

from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterMultipleInput
Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/qgis/BarPlot.py
Expand Up @@ -29,7 +29,8 @@
import plotly.graph_objs as go


from qgis.core import (QgsApplication)
from qgis.core import (QgsApplication,
QgsProcessingUtils)
from processing.core.parameters import ParameterTable
from processing.core.parameters import ParameterTableField
from processing.core.GeoAlgorithm import GeoAlgorithm
Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/qgis/BoxPlot.py
Expand Up @@ -28,7 +28,8 @@
import plotly as plt
import plotly.graph_objs as go

from qgis.core import (QgsApplication)
from qgis.core import (QgsApplication,
QgsProcessingUtils)
from processing.core.parameters import ParameterTable
from processing.core.parameters import ParameterTableField
from processing.core.parameters import ParameterSelection
Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/qgis/ConcaveHull.py
Expand Up @@ -30,7 +30,8 @@
QgsFeature,
QgsGeometry,
QgsWkbTypes,
QgsApplication)
QgsApplication,
QgsProcessingUtils)
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
from processing.core.parameters import ParameterVector
Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/qgis/CreateAttributeIndex.py
Expand Up @@ -27,7 +27,8 @@

from qgis.core import (QgsVectorDataProvider,
QgsFields,
QgsApplication)
QgsApplication,
QgsProcessingUtils)

from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterTable
Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/qgis/CreateConstantRaster.py
Expand Up @@ -27,7 +27,8 @@

from osgeo import gdal

from qgis.core import (QgsApplication)
from qgis.core import (QgsApplication,
QgsProcessingUtils)
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterRaster
from processing.core.parameters import ParameterNumber
Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/qgis/DefineProjection.py
Expand Up @@ -29,7 +29,8 @@
import re

from qgis.core import (QgsCoordinateReferenceSystem,
QgsApplication)
QgsApplication,
QgsProcessingUtils)
from qgis.utils import iface

from processing.core.GeoAlgorithm import GeoAlgorithm
Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/qgis/ExtractByAttribute.py
Expand Up @@ -28,7 +28,8 @@
from qgis.PyQt.QtCore import QVariant
from qgis.core import (QgsExpression,
QgsFeatureRequest,
QgsApplication)
QgsApplication,
QgsProcessingUtils)
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
from processing.core.parameters import ParameterVector
Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/qgis/ExtractByExpression.py
Expand Up @@ -26,7 +26,8 @@

from qgis.core import (QgsExpression,
QgsFeatureRequest,
QgsApplication)
QgsApplication,
QgsProcessingUtils)

from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
from processing.core.parameters import ParameterVector
Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/qgis/FindProjection.py
Expand Up @@ -32,7 +32,8 @@
QgsGeometry,
QgsRectangle,
QgsCoordinateReferenceSystem,
QgsCoordinateTransform)
QgsCoordinateTransform,
QgsProcessingUtils)

from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterVector
Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/qgis/FixedDistanceBuffer.py
Expand Up @@ -29,7 +29,8 @@

from qgis.PyQt.QtGui import QIcon

from qgis.core import QgsWkbTypes
from qgis.core import (QgsWkbTypes,
QgsProcessingUtils)

from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterVector
Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/qgis/IdwInterpolation.py
Expand Up @@ -29,7 +29,8 @@

from qgis.PyQt.QtGui import QIcon

from qgis.core import QgsRectangle
from qgis.core import (QgsRectangle,
QgsProcessingUtils)
from qgis.analysis import (QgsInterpolator,
QgsIDWInterpolator,
QgsGridFileWriter
Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/qgis/ImportIntoPostGIS.py
Expand Up @@ -27,7 +27,8 @@

from qgis.core import (QgsVectorLayerImport,
QgsSettings,
QgsApplication)
QgsApplication,
QgsProcessingUtils)

from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/qgis/ImportIntoSpatialite.py
Expand Up @@ -27,7 +27,8 @@

from qgis.core import (QgsDataSourceUri,
QgsVectorLayerImport,
QgsApplication)
QgsApplication,
QgsProcessingUtils)

from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/qgis/MeanAndStdDevPlot.py
Expand Up @@ -28,7 +28,8 @@
import plotly as plt
import plotly.graph_objs as go

from qgis.core import (QgsApplication)
from qgis.core import (QgsApplication,
QgsProcessingUtils)
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterTable
from processing.core.parameters import ParameterTableField
Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/qgis/Merge.py
Expand Up @@ -29,7 +29,8 @@

from qgis.PyQt.QtGui import QIcon
from qgis.PyQt.QtCore import QVariant
from qgis.core import QgsFields
from qgis.core import (QgsFields,
QgsProcessingUtils)

from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/qgis/PolarPlot.py
Expand Up @@ -29,7 +29,8 @@
import plotly.graph_objs as go
import numpy as np

from qgis.core import (QgsApplication)
from qgis.core import (QgsApplication,
QgsProcessingUtils)
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterTable
from processing.core.parameters import ParameterTableField
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/RandomSelection.py
Expand Up @@ -30,7 +30,7 @@
import random

from qgis.PyQt.QtGui import QIcon

from qgis.core import QgsProcessingUtils
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
from processing.core.parameters import ParameterSelection
Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/qgis/RasterLayerHistogram.py
Expand Up @@ -28,7 +28,8 @@
import plotly as plt
import plotly.graph_objs as go

from qgis.core import (QgsApplication)
from qgis.core import (QgsApplication,
QgsProcessingUtils)
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterNumber
from processing.core.parameters import ParameterRaster
Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/qgis/RasterLayerStatistics.py
Expand Up @@ -29,7 +29,8 @@
import math
import codecs

from qgis.core import (QgsApplication)
from qgis.core import (QgsApplication,
QgsProcessingUtils)
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterRaster
from processing.core.outputs import OutputNumber
Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/qgis/SaveSelectedFeatures.py
Expand Up @@ -25,7 +25,8 @@

__revision__ = '$Format:%H$'

from qgis.core import QgsApplication
from qgis.core import (QgsApplication,
QgsProcessingUtils)
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
from processing.core.parameters import ParameterVector
Expand Down
4 changes: 3 additions & 1 deletion python/plugins/processing/algs/qgis/SelectByAttribute.py
Expand Up @@ -27,7 +27,9 @@

from qgis.core import (QgsApplication)
from qgis.PyQt.QtCore import QVariant
from qgis.core import QgsExpression, QgsFeatureRequest
from qgis.core import (QgsExpression,
QgsFeatureRequest,
QgsProcessingUtils)
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
from processing.core.parameters import ParameterVector
Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/qgis/SelectByAttributeSum.py
Expand Up @@ -27,7 +27,8 @@

from qgis.core import (QgsApplication,
QgsSpatialIndex,
QgsFeatureRequest)
QgsFeatureRequest,
QgsProcessingUtils)

from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/qgis/SelectByExpression.py
Expand Up @@ -26,7 +26,8 @@

from qgis.core import (QgsApplication,
QgsExpression,
QgsVectorLayer)
QgsVectorLayer,
QgsProcessingUtils)
from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
from processing.core.parameters import ParameterVector
from processing.core.parameters import ParameterSelection
Expand Down
9 changes: 8 additions & 1 deletion python/plugins/processing/algs/qgis/ServiceAreaFromPoint.py
Expand Up @@ -31,7 +31,14 @@
from qgis.PyQt.QtCore import QVariant
from qgis.PyQt.QtGui import QIcon

from qgis.core import QgsWkbTypes, QgsUnitTypes, QgsFeature, QgsGeometry, QgsPoint, QgsField, QgsFields
from qgis.core import (QgsWkbTypes,
QgsUnitTypes,
QgsFeature,
QgsGeometry,
QgsPoint,
QgsField,
QgsFields,
QgsProcessingUtils)
from qgis.analysis import (QgsVectorLayerDirector,
QgsNetworkDistanceStrategy,
QgsNetworkSpeedStrategy,
Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/qgis/SetRasterStyle.py
Expand Up @@ -29,7 +29,8 @@

from qgis.PyQt.QtXml import QDomDocument

from qgis.core import (QgsApplication)
from qgis.core import (QgsApplication,
QgsProcessingUtils)
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterFile
from processing.core.parameters import ParameterRaster
Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/qgis/SetVectorStyle.py
Expand Up @@ -26,7 +26,8 @@
__revision__ = '$Format:%H$'

import os
from qgis.core import (QgsApplication)
from qgis.core import (QgsApplication,
QgsProcessingUtils)
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterVector
from processing.core.outputs import OutputVector
Expand Down
Expand Up @@ -31,7 +31,14 @@
from qgis.PyQt.QtCore import QVariant
from qgis.PyQt.QtGui import QIcon

from qgis.core import QgsWkbTypes, QgsUnitTypes, QgsFeature, QgsGeometry, QgsPoint, QgsFields, QgsField
from qgis.core import (QgsWkbTypes,
QgsUnitTypes,
QgsFeature,
QgsGeometry,
QgsPoint,
QgsFields,
QgsField,
QgsProcessingUtils)
from qgis.analysis import (QgsVectorLayerDirector,
QgsNetworkDistanceStrategy,
QgsNetworkSpeedStrategy,
Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/qgis/SpatialIndex.py
Expand Up @@ -28,7 +28,8 @@
import os

from qgis.core import (QgsApplication,
QgsVectorDataProvider)
QgsVectorDataProvider,
QgsProcessingUtils)

from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterVector
Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/qgis/TinInterpolation.py
Expand Up @@ -29,7 +29,8 @@

from qgis.PyQt.QtGui import QIcon

from qgis.core import QgsRectangle
from qgis.core import (QgsRectangle,
QgsProcessingUtils)
from qgis.analysis import (QgsInterpolator,
QgsTINInterpolator,
QgsGridFileWriter
Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/qgis/TruncateTable.py
Expand Up @@ -25,7 +25,8 @@

__revision__ = '$Format:%H$'

from qgis.core import (QgsApplication)
from qgis.core import (QgsApplication,
QgsProcessingUtils)
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterTable
from processing.core.outputs import OutputVector
Expand Down
Expand Up @@ -29,7 +29,8 @@

from qgis.PyQt.QtGui import QIcon

from qgis.core import QgsWkbTypes
from qgis.core import (QgsWkbTypes,
QgsProcessingUtils)

from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterVector
Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/qgis/VectorLayerHistogram.py