Skip to content
Permalink
Browse files
Remove a bunch of unneeded imports
  • Loading branch information
nyalldawson committed May 2, 2017
1 parent 4ed18b1 commit 877775d2c07cb3c8e68b5551db4d724a4c0c0b35
Showing with 67 additions and 145 deletions.
  1. +1 −1 python/plugins/processing/algs/exampleprovider/ExampleAlgorithm.py
  2. +0 −1 python/plugins/processing/algs/qgis/AddTableField.py
  3. +0 −1 python/plugins/processing/algs/qgis/AutoincrementalField.py
  4. +0 −1 python/plugins/processing/algs/qgis/BarPlot.py
  5. +0 −1 python/plugins/processing/algs/qgis/BasicStatistics.py
  6. +0 −1 python/plugins/processing/algs/qgis/BasicStatisticsNumbers.py
  7. +0 −1 python/plugins/processing/algs/qgis/BasicStatisticsStrings.py
  8. +1 −1 python/plugins/processing/algs/qgis/Boundary.py
  9. +1 −1 python/plugins/processing/algs/qgis/BoundingBox.py
  10. +0 −1 python/plugins/processing/algs/qgis/BoxPlot.py
  11. +0 −2 python/plugins/processing/algs/qgis/Buffer.py
  12. +1 −1 python/plugins/processing/algs/qgis/Centroids.py
  13. +0 −1 python/plugins/processing/algs/qgis/CheckValidity.py
  14. +1 −1 python/plugins/processing/algs/qgis/Clip.py
  15. +0 −2 python/plugins/processing/algs/qgis/CreateAttributeIndex.py
  16. +0 −1 python/plugins/processing/algs/qgis/CreateConstantRaster.py
  17. +0 −2 python/plugins/processing/algs/qgis/DefineProjection.py
  18. +1 −1 python/plugins/processing/algs/qgis/Delaunay.py
  19. +0 −1 python/plugins/processing/algs/qgis/DeleteColumn.py
  20. +0 −1 python/plugins/processing/algs/qgis/DeleteDuplicateGeometries.py
  21. +1 −1 python/plugins/processing/algs/qgis/DeleteHoles.py
  22. +2 −4 python/plugins/processing/algs/qgis/DensifyGeometries.py
  23. +2 −4 python/plugins/processing/algs/qgis/DensifyGeometriesInterval.py
  24. +0 −1 python/plugins/processing/algs/qgis/Difference.py
  25. +1 −1 python/plugins/processing/algs/qgis/Dissolve.py
  26. +1 −1 python/plugins/processing/algs/qgis/DropGeometry.py
  27. +0 −1 python/plugins/processing/algs/qgis/EquivalentNumField.py
  28. +0 −1 python/plugins/processing/algs/qgis/ExecuteSQL.py
  29. +1 −1 python/plugins/processing/algs/qgis/Explode.py
  30. +1 −1 python/plugins/processing/algs/qgis/ExportGeometryInfo.py
  31. +1 −1 python/plugins/processing/algs/qgis/ExtendLines.py
  32. +1 −1 python/plugins/processing/algs/qgis/ExtentFromLayer.py
  33. +0 −1 python/plugins/processing/algs/qgis/ExtractByAttribute.py
  34. +0 −1 python/plugins/processing/algs/qgis/ExtractByExpression.py
  35. +1 −1 python/plugins/processing/algs/qgis/ExtractByLocation.py
  36. +1 −1 python/plugins/processing/algs/qgis/ExtractSpecificNodes.py
  37. +0 −1 python/plugins/processing/algs/qgis/FieldPyculator.py
  38. +0 −2 python/plugins/processing/algs/qgis/FieldsCalculator.py
  39. +0 −2 python/plugins/processing/algs/qgis/FieldsMapper.py
  40. +0 −1 python/plugins/processing/algs/qgis/FindProjection.py
  41. +1 −1 python/plugins/processing/algs/qgis/FixGeometry.py
  42. +0 −1 python/plugins/processing/algs/qgis/GeometryByExpression.py
  43. +0 −2 python/plugins/processing/algs/qgis/GeometryConvert.py
  44. +0 −2 python/plugins/processing/algs/qgis/Gridify.py
  45. +1 −1 python/plugins/processing/algs/qgis/Heatmap.py
  46. +1 −1 python/plugins/processing/algs/qgis/HubDistanceLines.py
  47. +1 −1 python/plugins/processing/algs/qgis/HubDistancePoints.py
  48. +1 −1 python/plugins/processing/algs/qgis/HubLines.py
  49. +0 −1 python/plugins/processing/algs/qgis/IdwInterpolation.py
  50. +1 −1 python/plugins/processing/algs/qgis/ImportIntoPostGIS.py
  51. +1 −1 python/plugins/processing/algs/qgis/ImportIntoSpatialite.py
  52. +1 −1 python/plugins/processing/algs/qgis/Intersection.py
  53. +1 −1 python/plugins/processing/algs/qgis/JoinAttributes.py
  54. +0 −1 python/plugins/processing/algs/qgis/MeanAndStdDevPlot.py
  55. +1 −1 python/plugins/processing/algs/qgis/MergeLines.py
  56. +0 −1 python/plugins/processing/algs/qgis/MultipartToSingleparts.py
  57. +1 −1 python/plugins/processing/algs/qgis/NearestNeighbourAnalysis.py
  58. +1 −1 python/plugins/processing/algs/qgis/OffsetLine.py
  59. +1 −1 python/plugins/processing/algs/qgis/OrientedMinimumBoundingBox.py
  60. +1 −1 python/plugins/processing/algs/qgis/Orthogonalize.py
  61. +1 −1 python/plugins/processing/algs/qgis/PointDistance.py
  62. +1 −1 python/plugins/processing/algs/qgis/PointOnSurface.py
  63. +1 −1 python/plugins/processing/algs/qgis/PointsAlongGeometry.py
  64. +1 −1 python/plugins/processing/algs/qgis/PointsDisplacement.py
  65. +1 −1 python/plugins/processing/algs/qgis/PointsFromLines.py
  66. +1 −1 python/plugins/processing/algs/qgis/PointsFromPolygons.py
  67. +1 −1 python/plugins/processing/algs/qgis/PointsLayerFromTable.py
  68. +1 −1 python/plugins/processing/algs/qgis/PointsToPaths.py
  69. +1 −1 python/plugins/processing/algs/qgis/PolarPlot.py
  70. +1 −1 python/plugins/processing/algs/qgis/PoleOfInaccessibility.py
  71. +1 −1 python/plugins/processing/algs/qgis/PolygonCentroids.py
  72. +1 −1 python/plugins/processing/algs/qgis/Polygonize.py
  73. +1 −1 python/plugins/processing/algs/qgis/PolygonsToLines.py
  74. +0 −1 python/plugins/processing/algs/qgis/RandomExtract.py
  75. +0 −1 python/plugins/processing/algs/qgis/RandomExtractWithinSubsets.py
  76. +0 −1 python/plugins/processing/algs/qgis/RandomPointsExtent.py
  77. +0 −1 python/plugins/processing/algs/qgis/RandomSelection.py
  78. +0 −1 python/plugins/processing/algs/qgis/RandomSelectionWithinSubsets.py
  79. +1 −1 python/plugins/processing/algs/qgis/RasterLayerHistogram.py
  80. +0 −1 python/plugins/processing/algs/qgis/RasterLayerStatistics.py
  81. +1 −1 python/plugins/processing/algs/qgis/RectanglesOvalsDiamondsFixed.py
  82. +1 −1 python/plugins/processing/algs/qgis/RectanglesOvalsDiamondsVariable.py
  83. +0 −1 python/plugins/processing/algs/qgis/RegularPoints.py
  84. +1 −1 python/plugins/processing/algs/qgis/RemoveNullGeometry.py
  85. +0 −1 python/plugins/processing/algs/qgis/ReprojectLayer.py
  86. +1 −1 python/plugins/processing/algs/qgis/ReverseLineDirection.py
  87. +0 −1 python/plugins/processing/algs/qgis/SaveSelectedFeatures.py
  88. +0 −2 python/plugins/processing/algs/qgis/SelectByAttribute.py
  89. +0 −1 python/plugins/processing/algs/qgis/SelectByAttributeSum.py
  90. +0 −1 python/plugins/processing/algs/qgis/SelectByExpression.py
  91. +1 −1 python/plugins/processing/algs/qgis/SelectByLocation.py
  92. +1 −1 python/plugins/processing/algs/qgis/ServiceAreaFromLayer.py
  93. +1 −1 python/plugins/processing/algs/qgis/ShortestPathLayerToPoint.py
  94. +1 −1 python/plugins/processing/algs/qgis/ShortestPathPointToLayer.py
  95. +1 −1 python/plugins/processing/algs/qgis/SimplifyGeometries.py
  96. +0 −1 python/plugins/processing/algs/qgis/SinglePartsToMultiparts.py
  97. +1 −1 python/plugins/processing/algs/qgis/SingleSidedBuffer.py
  98. +1 −1 python/plugins/processing/algs/qgis/Smooth.py
  99. +0 −1 python/plugins/processing/algs/qgis/SnapGeometries.py
  100. +0 −2 python/plugins/processing/algs/qgis/SpatialIndex.py
  101. +1 −1 python/plugins/processing/algs/qgis/SpatialJoin.py
  102. +0 −1 python/plugins/processing/algs/qgis/StatisticsByCategories.py
  103. +1 −1 python/plugins/processing/algs/qgis/SymmetricalDifference.py
  104. +0 −1 python/plugins/processing/algs/qgis/TextToFloat.py
  105. +0 −1 python/plugins/processing/algs/qgis/TinInterpolation.py
  106. +1 −1 python/plugins/processing/algs/qgis/TopoColors.py
  107. +0 −1 python/plugins/processing/algs/qgis/Translate.py
  108. +0 −1 python/plugins/processing/algs/qgis/TruncateTable.py
  109. +1 −1 python/plugins/processing/algs/qgis/Union.py
  110. +0 −1 python/plugins/processing/algs/qgis/UniqueValues.py
  111. +1 −1 python/plugins/processing/algs/qgis/VectorLayerHistogram.py
  112. +0 −1 python/plugins/processing/algs/qgis/VectorLayerScatterplot.py
  113. +0 −1 python/plugins/processing/algs/qgis/VectorLayerScatterplot3D.py
  114. +1 −1 python/plugins/processing/algs/qgis/VectorSplit.py
  115. +1 −1 python/plugins/processing/algs/qgis/VoronoiPolygons.py
  116. +0 −1 python/plugins/processing/algs/qgis/scripts/Frequency_analysis.py
  117. +0 −1 python/plugins/processing/algs/qgis/scripts/Keep_n_biggest_parts.py
  118. +0 −1 python/plugins/processing/algs/qgis/scripts/Number_of_unique_values_in_classes.py
  119. +0 −1 python/plugins/processing/algs/qgis/ui/FieldsMappingPanel.py
  120. +1 −2 python/plugins/processing/algs/qgis/ui/InterpolationDataWidget.py
  121. +1 −2 python/plugins/processing/core/GeoAlgorithm.py
  122. +0 −1 python/plugins/processing/core/ProcessingLog.py
  123. +0 −1 python/plugins/processing/gui/ExtentSelectionPanel.py
  124. +0 −1 python/plugins/processing/modeler/ModelerDialog.py
  125. +0 −1 python/plugins/processing/tests/ToolsTest.py
  126. +0 −1 python/plugins/processing/tests/testdata/scripts/centroids.py
  127. +0 −2 python/plugins/processing/tools/vector.py
@@ -30,7 +30,7 @@
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterVector
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector
from processing.tools import dataobjects


class ExampleAlgorithm(GeoAlgorithm):
@@ -36,7 +36,6 @@
from processing.core.parameters import ParameterNumber
from processing.core.parameters import ParameterSelection
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector


class AddTableField(GeoAlgorithm):
@@ -33,7 +33,6 @@
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterVector
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector


class AutoincrementalField(GeoAlgorithm):
@@ -36,7 +36,6 @@
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.outputs import OutputHTML
from processing.tools import vector
from processing.tools import dataobjects


class BarPlot(GeoAlgorithm):
@@ -42,7 +42,6 @@
from processing.core.parameters import ParameterTableField
from processing.core.outputs import OutputHTML
from processing.core.outputs import OutputNumber
from processing.tools import dataobjects, vector

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]

@@ -41,7 +41,6 @@
from processing.core.parameters import ParameterTableField
from processing.core.outputs import OutputHTML
from processing.core.outputs import OutputNumber
from processing.tools import dataobjects, vector

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]

@@ -41,7 +41,6 @@
from processing.core.parameters import ParameterTableField
from processing.core.outputs import OutputHTML
from processing.core.outputs import OutputNumber
from processing.tools import dataobjects, vector

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]

@@ -35,7 +35,7 @@
from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
from processing.core.parameters import ParameterVector
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector
from processing.tools import dataobjects

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]

@@ -35,7 +35,7 @@
from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
from processing.core.parameters import ParameterVector
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector
from processing.tools import dataobjects

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]

@@ -36,7 +36,6 @@
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.outputs import OutputHTML
from processing.tools import vector
from processing.tools import dataobjects


class BoxPlot(GeoAlgorithm):
@@ -27,8 +27,6 @@

from qgis.core import QgsFeature, QgsGeometry, QgsProcessingUtils

from processing.tools import vector


def buffering(feedback, context, writer, distance, field, useField, layer, dissolve, segments, endCapStyle=1,
joinStyle=1, mitreLimit=2):
@@ -36,7 +36,7 @@
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterVector
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector
from processing.tools import dataobjects

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]

@@ -35,7 +35,6 @@
from processing.core.parameters import ParameterVector
from processing.core.parameters import ParameterSelection
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector

settings_method_key = "/qgis/digitizing/validate_geometries"
pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]
@@ -39,7 +39,7 @@
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterVector
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector
from processing.tools import dataobjects

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]

@@ -35,8 +35,6 @@
from processing.core.parameters import ParameterTableField
from processing.core.outputs import OutputVector

from processing.tools import dataobjects


class CreateAttributeIndex(GeoAlgorithm):

@@ -34,7 +34,6 @@
from processing.core.parameters import ParameterNumber
from processing.core.outputs import OutputRaster
from processing.tools.raster import RasterWriter
from processing.tools import dataobjects


class CreateConstantRaster(GeoAlgorithm):
@@ -38,8 +38,6 @@
from processing.core.parameters import ParameterCrs
from processing.core.outputs import OutputVector

from processing.tools import dataobjects

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]


@@ -37,7 +37,7 @@
from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
from processing.core.parameters import ParameterVector
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector
from processing.tools import dataobjects

from . import voronoi

@@ -31,7 +31,6 @@
from processing.core.parameters import ParameterVector
from processing.core.parameters import ParameterTableField
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector


class DeleteColumn(GeoAlgorithm):
@@ -31,7 +31,6 @@
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterVector
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector


class DeleteDuplicateGeometries(GeoAlgorithm):
@@ -30,7 +30,7 @@
from processing.core.parameters import (ParameterVector,
ParameterNumber)
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector
from processing.tools import dataobjects


class DeleteHoles(GeoAlgorithm):
@@ -28,17 +28,15 @@

import os

from qgis.core import (QgsGeometry,
QgsPoint,
QgsWkbTypes,
from qgis.core import (QgsWkbTypes,
QgsApplication,
QgsProcessingUtils)

from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterVector
from processing.core.parameters import ParameterNumber
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector
from processing.tools import dataobjects

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]

@@ -29,17 +29,15 @@

from math import sqrt

from qgis.core import (QgsPoint,
QgsGeometry,
QgsWkbTypes,
from qgis.core import (QgsWkbTypes,
QgsApplication,
QgsProcessingUtils)

from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterVector
from processing.core.parameters import ParameterNumber
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector
from processing.tools import dataobjects


class DensifyGeometriesInterval(GeoAlgorithm):
@@ -38,7 +38,6 @@
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterVector
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]

@@ -41,7 +41,7 @@
from processing.core.parameters import ParameterBoolean
from processing.core.parameters import ParameterTableField
from processing.core.outputs import OutputVector
from processing.tools import vector, dataobjects
from processing.tools import dataobjects

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]

@@ -33,7 +33,7 @@
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterVector
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector
from processing.tools import dataobjects


class DropGeometry(GeoAlgorithm):
@@ -34,7 +34,6 @@
from processing.core.parameters import ParameterVector
from processing.core.parameters import ParameterTableField
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector


class EquivalentNumField(GeoAlgorithm):
@@ -40,7 +40,6 @@
from processing.core.parameters import ParameterCrs
from processing.core.parameters import ParameterSelection
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector


class ExecuteSQL(GeoAlgorithm):
@@ -34,7 +34,7 @@
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterVector
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector
from processing.tools import dataobjects


class Explode(GeoAlgorithm):
@@ -37,7 +37,7 @@
from processing.core.parameters import ParameterVector
from processing.core.parameters import ParameterSelection
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector
from processing.tools import vector

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]

@@ -31,7 +31,7 @@
from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
from processing.core.parameters import ParameterVector, ParameterNumber
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector
from processing.tools import dataobjects


class ExtendLines(GeoAlgorithm):
@@ -36,7 +36,7 @@
from processing.core.parameters import ParameterVector
from processing.core.parameters import ParameterBoolean
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector
from processing.tools import dataobjects

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]

@@ -37,7 +37,6 @@
from processing.core.parameters import ParameterSelection
from processing.core.parameters import ParameterString
from processing.core.outputs import OutputVector
from processing.tools import dataobjects


class ExtractByAttribute(GeoAlgorithm):
@@ -34,7 +34,6 @@
from processing.core.outputs import OutputVector
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterExpression
from processing.tools import dataobjects


class ExtractByExpression(GeoAlgorithm):
@@ -33,7 +33,7 @@
from processing.core.parameters import ParameterSelection
from processing.core.parameters import ParameterNumber
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector
from processing.tools import vector


class ExtractByLocation(GeoAlgorithm):
@@ -30,7 +30,7 @@
from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
from processing.core.parameters import ParameterVector, ParameterString
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector
from processing.tools import dataobjects

from qgis.core import (QgsWkbTypes,
QgsFeature,
@@ -40,7 +40,6 @@
from processing.core.parameters import ParameterNumber
from processing.core.parameters import ParameterSelection
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector


class FieldsPyculator(GeoAlgorithm):
@@ -33,7 +33,6 @@
QgsField,
QgsDistanceArea,
QgsProject,
GEO_NONE,
QgsApplication,
QgsProcessingUtils)
from processing.core.GeoAlgorithm import GeoAlgorithm
@@ -44,7 +43,6 @@
from processing.core.parameters import ParameterBoolean
from processing.core.parameters import ParameterSelection
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector

from .ui.FieldsCalculatorDialog import FieldsCalculatorDialog

@@ -33,15 +33,13 @@
QgsDistanceArea,
QgsProject,
QgsFeature,
GEO_NONE,
QgsApplication,
QgsProcessingUtils)
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
from processing.core.parameters import ParameterTable
from processing.core.parameters import Parameter
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector


class FieldsMapper(GeoAlgorithm):
@@ -40,7 +40,6 @@
from processing.core.parameters import ParameterCrs
from processing.core.parameters import ParameterExtent
from processing.core.outputs import OutputHTML
from processing.tools import dataobjects

pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]

@@ -35,7 +35,7 @@
from processing.core.parameters import ParameterVector
from processing.core.outputs import OutputVector
from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
from processing.tools import dataobjects, vector
from processing.tools import dataobjects


class FixGeometry(GeoAlgorithm):
@@ -37,7 +37,6 @@
from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
from processing.core.parameters import ParameterVector, ParameterSelection, ParameterBoolean, ParameterExpression
from processing.core.outputs import OutputVector
from processing.tools import dataobjects, vector


class GeometryByExpression(GeoAlgorithm):

0 comments on commit 877775d

Please sign in to comment.