Skip to content

Commit

Permalink
Fix type of "face_seed" layer in TopoViewer
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandro Santilli committed Feb 9, 2014
1 parent 71c1ad1 commit 0d4968c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down

0 comments on commit 0d4968c

Please sign in to comment.