Skip to content

Commit

Permalink
[processing] improve eliminate selected polygons alg help
Browse files Browse the repository at this point in the history
i.e., the use only selected option is gone since 3.0
  • Loading branch information
nirvn committed May 1, 2018
1 parent 39c6e23 commit 9d9955e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/help/qgis.yaml
Expand Up @@ -149,7 +149,7 @@ qgis:distancetonearesthub: >
The resulting layer can contain only source points with an additional field indicating the distance to the nearest point and the name of the destination point, or lines linking each source point with its nearest destination point.

qgis:eliminateselectedpolygons: >
This algorithm combines selected polygons of the input layer with certain adjacent polygons by erasing their common boundary. The adjacent polygon can be either the one with the largest or smallest area or the one sharing the largest common boundary with the polygon to be eliminated. The selected features will always be eliminated whether the option "Use only selected features" is set or not.
This algorithm combines selected polygons of the input layer with certain adjacent polygons by erasing their common boundary. The adjacent polygon can be either the one with the largest or smallest area or the one sharing the largest common boundary with the polygon to be eliminated.
Eliminate is normally used to get rid of sliver polygons, i.e. tiny polygons that are a result of polygon intersection processes where boundaries of the inputs are similar but not identical.

qgis:exportaddgeometrycolumns: >
Expand Down
8 changes: 6 additions & 2 deletions python/plugins/processing/algs/qgis/EliminateSelection.py
Expand Up @@ -29,7 +29,8 @@

from qgis.PyQt.QtGui import QIcon

from qgis.core import (QgsFeatureRequest,
from qgis.core import (QgsApplication,
QgsFeatureRequest,
QgsFeature,
QgsFeatureSink,
QgsGeometry,
Expand Down Expand Up @@ -57,7 +58,10 @@ class EliminateSelection(QgisAlgorithm):
MODE_BOUNDARY = 2

def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'ftools', 'eliminate.png'))
return QgsApplication.getThemeIcon("/algorithms/mAlgorithmDissolve.svg")

def svgIconPath(self):
return QgsApplication.iconPath("/algorithms/mAlgorithmDissolve.svg")

def group(self):
return self.tr('Vector geometry')
Expand Down

0 comments on commit 9d9955e

Please sign in to comment.