Skip to content
Permalink
Browse files

remove fromOldWkbType (api_break)

  • Loading branch information
JD LOMENEDE
JD LOMENEDE committed Nov 23, 2017
1 parent cd0ba91 commit 13cb8e4e0b7a6bd903dcc2719121ac83c2bc086e
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/db_manager/db_plugins/vlayers/data_model.py
@@ -26,7 +26,7 @@
from ..plugin import DbError

from qgis.PyQt.QtCore import QTime, QTemporaryFile
from qgis.core import Qgis, QgsVectorLayer, QgsWkbTypes, QgsVirtualLayerDefinition
from qgis.core import QgsVectorLayer, QgsWkbTypes, QgsVirtualLayerDefinition


class LTableDataModel(TableDataModel):
@@ -49,7 +49,7 @@ def __init__(self, table, parent=None):
a = f.attributes()
# add the geometry type
if f.hasGeometry():
a.append(QgsWkbTypes.displayString(Qgis.fromOldWkbType(f.geometry().wkbType())))
a.append(QgsWkbTypes.displayString(f.geometry().wkbType()))
else:
a.append('None')
self.resdata.append(a)

0 comments on commit 13cb8e4

Please sign in to comment.
You can’t perform that action at this time.