Skip to content
Permalink
Browse files
[processing] more complete support for int64 fields (follow up 8d2cc88)
(cherry picked from commit 649d41f)
  • Loading branch information
alexbruy committed Oct 20, 2016
1 parent dbf6169 commit b2a2c1888117cd166c24786b210ad9ed62ba7c3b
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/algs/qgis/Eliminate.py
@@ -107,7 +107,7 @@ def processAlgorithm(self, progress):
selectType = inLayer.fields()[selectindex].type()
selectionError = False

if selectType == QVariant.Int or selectType == QVariant.LongLong:
if selectType in [QVariant.Int, QVariant.LongLong, QVariant.UInt, QVariant.ULongLong]:
try:
y = int(comparisonvalue)
except ValueError:
@@ -167,7 +167,7 @@ def processAlgorithm(self, progress):
if aValue is None:
continue

if selectType == QVariant.Int or selectType == QVariant.LongLong:
if selectType in [QVariant.Int, QVariant.LongLong, QVariant.UInt, QVariant.ULongLong]:
x = int(aValue)
elif selectType == QVariant.Double:
x = float(aValue)

0 comments on commit b2a2c18

Please sign in to comment.