[processing] improve eliminate selected polygons alg help

i.e., the use only selected option is gone since 3.0
This commit is contained in:
nirvn 2018-05-01 10:42:07 +07:00
parent 39c6e23c08
commit 9d9955e272
2 changed files with 7 additions and 3 deletions

View File

@ -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: >

View File

@ -29,7 +29,8 @@ import os
from qgis.PyQt.QtGui import QIcon
from qgis.core import (QgsFeatureRequest,
from qgis.core import (QgsApplication,
QgsFeatureRequest,
QgsFeature,
QgsFeatureSink,
QgsGeometry,
@ -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')