Skip to content

Commit 3dfe1b3

Browse files
committedOct 16, 2017
[processing] added support for longlong type in output memory layers
1 parent 135aea5 commit 3dfe1b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎python/plugins/processing/tools/vector.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@
7171
QVariant.Int: "integer",
7272
QVariant.Date: "date",
7373
QVariant.DateTime: "datetime",
74-
QVariant.Time: "time"
74+
QVariant.Time: "time",
75+
QVariant.LongLong: "integer"
7576
}
7677

7778
TYPE_MAP_POSTGIS_LAYER = {
@@ -419,6 +420,7 @@ def checkMinDistance(point, index, distance, points):
419420
def _toQgsField(f):
420421
if isinstance(f, QgsField):
421422
return f
423+
print f[0], f[1]
422424
return QgsField(f[0], TYPE_MAP.get(f[1], QVariant.String))
423425

424426

0 commit comments

Comments
 (0)