mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-08 00:06:51 -05: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()
|
selectType = processLayer.fields()[selectindex].type()
|
||||||
selectionError = False
|
selectionError = False
|
||||||
|
|
||||||
if selectType == QVariant.Int or selectType == QVariant.LongLong:
|
if selectType in [QVariant.Int, QVariant.LongLong, QVariant.UInt, QVariant.ULongLong]:
|
||||||
try:
|
try:
|
||||||
y = int(comparisonvalue)
|
y = int(comparisonvalue)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
@ -175,7 +175,7 @@ class Eliminate(GeoAlgorithm):
|
|||||||
if aValue is None:
|
if aValue is None:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if selectType == QVariant.Int or selectType == QVariant.LongLong:
|
if selectType in [QVariant.Int, QVariant.LongLong, QVariant.UInt, QVariant.ULongLong]:
|
||||||
x = int(aValue)
|
x = int(aValue)
|
||||||
elif selectType == QVariant.Double:
|
elif selectType == QVariant.Double:
|
||||||
x = float(aValue)
|
x = float(aValue)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user