Skip to content
Permalink
Browse files

DBManager topoviewer: don't be fooled by srid=-1 in topology.topology

Fixes #12802
  • Loading branch information
Sandro Santilli
Sandro Santilli committed Jul 2, 2015
1 parent 76bda5e commit fcc51bcd8c55ac4f103697115115e0d0e6de1b2a
@@ -86,7 +86,11 @@ def run(item, action, mainwindow):
mainwindow.iface.messageTimeout())
return False

toposrid = str(res[0])
if ( res[0] < 0 ):
mainwindow.infoBar.pushMessage("WARNING", u'Topology "{0}" is registered as having a srid of {1} in topology.topology, we will assume 0 (for unknown)'.format(item.schema().name, res[0]), QgsMessageBar.WARNING, mainwindow.iface.messageTimeout())
toposrid = '0'
else:
toposrid = str(res[0])

# load layers into the current project
toponame = item.schema().name

0 comments on commit fcc51bc

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