Skip to content

Commit

Permalink
[processing] rename network analysis algs to reflect their inputs type
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Dec 13, 2016
1 parent ce342b0 commit b2a01c5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions python/plugins/processing/algs/qgis/QGISAlgorithmProvider.py
Expand Up @@ -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))
Expand Down Expand Up @@ -251,7 +251,7 @@ def __init__(self):
ExtractSpecificNodes(), GeometryByExpression(), SnapGeometriesToLayer(),
PoleOfInaccessibility(), CreateAttributeIndex(), DropGeometry(),
BasicStatisticsForField(), RasterCalculator(), Heatmap(),
Orthogonalize(), ShortestPath(), ServiceArea()
Orthogonalize(), ShortestPathPointToPoint(), ServiceAreaFromPoint()
]

if hasMatplotlib:
Expand Down
Expand Up @@ -2,7 +2,7 @@

"""
***************************************************************************
ServiceArea.py
ServiceAreaFromPoint.py
---------------------
Date : December 2016
Copyright : (C) 2016 by Alexander Bruy
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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,
Expand Down
Expand Up @@ -2,7 +2,7 @@

"""
***************************************************************************
ShortestPath.py
ShortestPathPointToPoint.py
---------------------
Date : November 2016
Copyright : (C) 2016 by Alexander Bruy
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit b2a01c5

Please sign in to comment.