mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[processing] Fix misleading errors in grid algorithms
This commit is contained in:
parent
7d60329047
commit
c87f5aad1b
@ -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))
|
||||
|
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user