[processing] Fix misleading errors in grid algorithms

This commit is contained in:
Nyall Dawson 2018-01-23 10:55:28 +10:00
parent 7d60329047
commit c87f5aad1b
2 changed files with 4 additions and 4 deletions

View File

@ -124,11 +124,11 @@ class GridLine(QgisAlgorithm):
if width < hSpacing:
raise QgsProcessingException(
self.tr('Horizontal spacing is too small for the covered area'))
self.tr('Horizontal spacing is too large for the covered area'))
if height < vSpacing:
raise QgsProcessingException(
self.tr('Vertical spacing is too small for the covered area'))
self.tr('Vertical spacing is too large for the covered area'))
fields = QgsFields()
fields.append(QgsField('left', QVariant.Double, '', 24, 16))

View File

@ -130,7 +130,7 @@ class GridPolygon(QgisAlgorithm):
if width < hSpacing:
raise QgsProcessingException(
self.tr('Horizontal spacing is too small for the covered area'))
self.tr('Horizontal spacing is too large for the covered area'))
if hSpacing <= hOverlay or vSpacing <= vOverlay:
raise QgsProcessingException(
@ -138,7 +138,7 @@ class GridPolygon(QgisAlgorithm):
if height < vSpacing:
raise QgsProcessingException(
self.tr('Vertical spacing is too small for the covered area'))
self.tr('Vertical spacing is too large for the covered area'))
fields = QgsFields()
fields.append(QgsField('left', QVariant.Double, '', 24, 16))