1 parent 53917e3 commit c94b40cCopy full SHA for c94b40c
1 file changed
m2l/processing/algorithms/sampler.py
@@ -10,7 +10,7 @@
10
"""
11
# Python imports
12
from typing import Any, Optional
13
-from qgis.PyQt.QtCore import QMetaType
+from qgis.PyQt.QtCore import QVariant
14
from osgeo import gdal
15
import pandas as pd
16
@@ -182,11 +182,11 @@ def processAlgorithm(
182
dtype_str = str(dtype)
183
184
if dtype_str in ['float16', 'float32', 'float64']:
185
- field_type = QMetaType.Type.Double
+ field_type = QVariant.Double
186
elif dtype_str in ['int8', 'int16', 'int32', 'int64']:
187
- field_type = QMetaType.Type.Int
+ field_type = QVariant.Int
188
else:
189
- field_type = QMetaType.Type.QString
+ field_type = QVariant.String
190
191
fields.append(QgsField(column_name, field_type))
192
0 commit comments