1
- from sextante .core .AlgorithmProvider import AlgorithmProvider
2
-
3
1
import os
2
+
4
3
from PyQt4 import QtGui
5
- from sextante .ftools .Centroids import Centroids
4
+
5
+ from sextante .core .AlgorithmProvider import AlgorithmProvider
6
+
7
+ # analysis tools
8
+ from sextante .ftools .SumLines import SumLines
9
+ from sextante .ftools .MeanCoords import MeanCoords
10
+ from sextante .ftools .UniqueValues import UniqueValues
11
+ from sextante .ftools .BasicStatistics import BasicStatistics
12
+ from sextante .ftools .PointsInPolygon import PointsInPolygon
13
+ from sextante .ftools .LinesIntersection import LinesIntersection
14
+ from sextante .ftools .NearestNeighbourAnalysis import NearestNeighbourAnalysis
15
+
16
+ # data management tools
17
+
18
+ # geometry tools
6
19
from sextante .ftools .Delaunay import Delaunay
7
- from sextante .ftools .SimplifyGeometries import SimplifyGeometries
8
- from sextante .ftools .VoronoiPolygons import VoronoiPolygons
9
- from sextante .ftools .ExportGeometryInfo import ExportGeometryInfo
20
+ from sextante .ftools .Centroids import Centroids
10
21
from sextante .ftools .ExtractNodes import ExtractNodes
22
+ from sextante .ftools .VoronoiPolygons import VoronoiPolygons
11
23
from sextante .ftools .LinesToPolygons import LinesToPolygons
12
24
from sextante .ftools .PolygonsToLines import PolygonsToLines
25
+ from sextante .ftools .SimplifyGeometries import SimplifyGeometries
26
+ from sextante .ftools .ExportGeometryInfo import ExportGeometryInfo
27
+ from sextante .ftools .MultipartToSingleparts import MultipartToSingleparts
13
28
from sextante .ftools .SinglePartsToMultiparts import SinglePartsToMultiparts
14
- from sextante .ftools .BasicStatistics import BasicStatistics
15
- from sextante .ftools .PointsInPolygon import PointsInPolygon
16
- from sextante .ftools .SumLines import SumLines
17
- from sextante .ftools .MeanCoords import MeanCoords
18
- from sextante .ftools .NearestNeighbourAnalysis import NearestNeighbourAnalysis
19
- from sextante .ftools .LinesIntersection import LinesIntersection
20
- from sextante .ftools .ConvexHull import ConvexHull
21
- from sextante .ftools .FixedDistanceBuffer import FixedDistanceBuffer
22
- from sextante .ftools .VariableDistanceBuffer import VariableDistanceBuffer
29
+
30
+ # geoprocessing tools
31
+ from sextante .ftools .Clip import Clip
32
+ from sextante .ftools .Union import Union
23
33
from sextante .ftools .Dissolve import Dissolve
34
+ from sextante .ftools .ConvexHull import ConvexHull
24
35
from sextante .ftools .Difference import Difference
25
36
from sextante .ftools .Intersection import Intersection
26
- from sextante .ftools .Union import Union
27
- from sextante .ftools .Clip import Clip
37
+ from sextante .ftools .FixedDistanceBuffer import FixedDistanceBuffer
38
+ from sextante .ftools .VariableDistanceBuffer import VariableDistanceBuffer
39
+
40
+ # research tools
28
41
from sextante .ftools .ExtentFromLayer import ExtentFromLayer
29
42
from sextante .ftools .RandomSelection import RandomSelection
30
43
from sextante .ftools .SelectByLocation import SelectByLocation
31
44
from sextante .ftools .RandomSelectionWithinSubsets import RandomSelectionWithinSubsets
32
- from sextante .ftools .MultipartToSingleparts import MultipartTosingleparts
33
45
34
46
class FToolsAlgorithmProvider (AlgorithmProvider ):
35
47
36
48
def __init__ (self ):
37
49
AlgorithmProvider .__init__ (self )
38
- self .alglist = [SinglePartsToMultiparts (), PolygonsToLines (),
39
- LinesToPolygons (), ExportGeometryInfo (), ExtractNodes (),
40
- Centroids (), SimplifyGeometries (), Delaunay (), VoronoiPolygons (),
41
- SumLines (), BasicStatistics (), PointsInPolygon (),
42
- NearestNeighbourAnalysis (), MeanCoords (), LinesIntersection (),
43
- ConvexHull (), FixedDistanceBuffer (), VariableDistanceBuffer (),
44
- Dissolve (), Difference (), Intersection (), Union (), Clip (), ExtentFromLayer (),
45
- RandomSelection (), RandomSelectionWithinSubsets (), SelectByLocation (),
46
- MultipartTosingleparts ()]
50
+ self .alglist = [SumLines (), PointsInPolygon (), BasicStatistics (),
51
+ NearestNeighbourAnalysis (), MeanCoords (), LinesIntersection (),
52
+ UniqueValues (),
53
+ # data management
54
+ # geometry
55
+ ExportGeometryInfo (), Centroids (), Delaunay (), VoronoiPolygons (),
56
+ SimplifyGeometries (), MultipartToSingleparts (), SinglePartsToMultiparts (),
57
+ PolygonsToLines (), LinesToPolygons (), ExtractNodes (),
58
+ # geoprocessing
59
+ ConvexHull (), FixedDistanceBuffer (), VariableDistanceBuffer (),
60
+ Dissolve (), Difference (), Intersection (), Union (), Clip (),
61
+ # research
62
+ ExtentFromLayer (), RandomSelection (), RandomSelectionWithinSubsets (),
63
+ SelectByLocation ()
64
+ ]
47
65
48
66
def getDescription (self ):
49
67
return "fTools (Vector analysis)"
@@ -57,6 +75,5 @@ def getIcon(self):
57
75
def _loadAlgorithms (self ):
58
76
self .algs = self .alglist
59
77
60
-
61
78
def getSupportedOutputTableExtensions (self ):
62
79
return ["csv" ]
0 commit comments