Skip to content
Permalink
Browse files
Fix type of "face_seed" layer in TopoViewer
  • Loading branch information
Sandro Santilli committed Feb 9, 2014
1 parent 71c1ad1 commit 0d4968c80a51f66e84830e9e6c4df971701962b5
@@ -137,7 +137,7 @@ def run(item, action, mainwindow):
'FROM %s.face WHERE face_id > 0' % (quoteStr(toponame), quoteId(toponame))
uri.setDataSource('', u'(%s)' % sql, 'geom', '', 'face_id')
uri.setSrid( toposrid )
uri.setWkbType( QGis.WKBPolygon )
uri.setWkbType( QGis.WKBPoint )
layer = QgsVectorLayer(uri.uri(), u'%s.face_seed' % toponame, provider)
layer.setExtent(face_extent)
layer.loadNamedStyle(os.path.join(template_dir, 'face_seed.qml'))

0 comments on commit 0d4968c

Please sign in to comment.