mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
Fix type of "face_seed" layer in TopoViewer
This commit is contained in:
parent
71c1ad1033
commit
0d4968c80a
@ -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'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user