Skip to content
Permalink
Browse files

Merge pull request #5713 from lejedi76/fix_remove_fromOldWkbType

[db_manager] remove fromOldWkbType (api_break) from vlayer
  • Loading branch information
nyalldawson committed Nov 24, 2017
2 parents cd0ba91 + 13cb8e4 commit 6278245949f32204e8bc507f231ac92ceaa222f2
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 6278245

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