File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -987,6 +987,13 @@ bool QgsOgrProvider::addFeature( QgsFeature& f )
987
987
OGR_F_SetFieldInteger ( feature, targetAttributeId, attrVal.toInt () );
988
988
break ;
989
989
990
+
991
+ #if defined(GDAL_VERSION_NUM) && GDAL_VERSION_NUM >= 2000000
992
+ case OFTInteger64:
993
+ OGR_F_SetFieldInteger64 ( feature, targetAttributeId, attrVal.toLongLong () );
994
+ break ;
995
+ #endif
996
+
990
997
case OFTReal:
991
998
OGR_F_SetFieldDouble ( feature, targetAttributeId, attrVal.toDouble () );
992
999
break ;
@@ -1204,6 +1211,11 @@ bool QgsOgrProvider::changeAttributeValues( const QgsChangedAttributesMap &attr_
1204
1211
case OFTInteger:
1205
1212
OGR_F_SetFieldInteger ( of, f, it2->toInt () );
1206
1213
break ;
1214
+ #if defined(GDAL_VERSION_NUM) && GDAL_VERSION_NUM >= 2000000
1215
+ case OFTInteger64:
1216
+ OGR_F_SetFieldInteger64 ( of, f, it2->toLongLong () );
1217
+ break ;
1218
+ #endif
1207
1219
case OFTReal:
1208
1220
OGR_F_SetFieldDouble ( of, f, it2->toDouble () );
1209
1221
break ;
You can’t perform that action at this time.
0 commit comments