mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[processing] more complete support for int64 fields (follow up 8d2cc8806b)
(cherry picked from commit 649d41f1ecd4b8d22110e11cb9e693231bec8ed2)
This commit is contained in:
parent
62a9436178
commit
89fa21e5fa
@ -115,7 +115,7 @@ class Eliminate(GeoAlgorithm):
|
||||
selectType = processLayer.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:
|
||||
@ -175,7 +175,7 @@ class Eliminate(GeoAlgorithm):
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user