Skip to content
Permalink
Browse files

[processing] rename network analysis algs to reflect their inputs type

  • Loading branch information
alexbruy committed Dec 13, 2016
1 parent ce342b0 commit b2a01c57afb4e2036dc0b3ff9b5f1de31b68a44f
@@ -184,8 +184,8 @@
from .BasicStatistics import BasicStatisticsForField
from .Heatmap import Heatmap
from .Orthogonalize import Orthogonalize
from .ShortestPath import ShortestPath
from .ServiceArea import ServiceArea
from .ShortestPathPointToPoint import ShortestPathPointToPoint
from .ServiceAreaFromPoint import ServiceAreaFromPoint

pluginPath = os.path.normpath(os.path.join(
os.path.split(os.path.dirname(__file__))[0], os.pardir))
@@ -251,7 +251,7 @@ def __init__(self):
ExtractSpecificNodes(), GeometryByExpression(), SnapGeometriesToLayer(),
PoleOfInaccessibility(), CreateAttributeIndex(), DropGeometry(),
BasicStatisticsForField(), RasterCalculator(), Heatmap(),
Orthogonalize(), ShortestPath(), ServiceArea()
Orthogonalize(), ShortestPathPointToPoint(), ServiceAreaFromPoint()
]

if hasMatplotlib:
@@ -2,7 +2,7 @@

"""
***************************************************************************
ServiceArea.py
ServiceAreaFromPoint.py
---------------------
Date : December 2016
Copyright : (C) 2016 by Alexander Bruy
@@ -56,7 +56,7 @@
pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]


class ServiceArea(GeoAlgorithm):
class ServiceAreaFromPoint(GeoAlgorithm):

INPUT_VECTOR = 'INPUT_VECTOR'
START_POINT = 'START_POINT'
@@ -85,7 +85,7 @@ def defineCharacteristics(self):
self.tr('Fastest')
]

self.name, self.i18n_name = self.trAlgorithm('Service area')
self.name, self.i18n_name = self.trAlgorithm('Service area (from point)')
self.group, self.i18n_group = self.trAlgorithm('Network analysis')

self.addParameter(ParameterVector(self.INPUT_VECTOR,
@@ -2,7 +2,7 @@

"""
***************************************************************************
ShortestPath.py
ShortestPathPointToPoint.py
---------------------
Date : November 2016
Copyright : (C) 2016 by Alexander Bruy
@@ -55,7 +55,7 @@
pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]


class ShortestPath(GeoAlgorithm):
class ShortestPathPointToPoint(GeoAlgorithm):

INPUT_VECTOR = 'INPUT_VECTOR'
START_POINT = 'START_POINT'
@@ -85,7 +85,7 @@ def defineCharacteristics(self):
self.tr('Fastest')
]

self.name, self.i18n_name = self.trAlgorithm('Shortest path')
self.name, self.i18n_name = self.trAlgorithm('Shortest path (point to point)')
self.group, self.i18n_group = self.trAlgorithm('Network analysis')

self.addParameter(ParameterVector(self.INPUT_VECTOR,

0 comments on commit b2a01c5

Please sign in to comment.
You can’t perform that action at this time.