Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
self.segment_table.set_num_threads(self.options.numthreads)
hiertable = osgende.RelationHierarchy(self.db,
name=conf.DB_HIERARCHY_TABLE,
subset="""SELECT id FROM relations
WHERE %s""" % (conf.TAGS_ROUTE_SUBSET))
hroutes = hrel.Routes(self.db, self.segment_table, hiertable)
hroutes.set_num_threads(self.options.numthreads)
self.data_tables = [
self.segment_table,
hiertable,
hroutes,
hposts.GuidePosts(self.db, 'bicycle', True),
hposts.NetworkNodes(self.db)
]
self.style_tables = [
hstyle.cyclingStyleDefault(self.db)
]
self.segment_table.set_num_threads(self.options.numthreads)
hiertable = osgende.RelationHierarchy(self.db,
name=conf.DB_HIERARCHY_TABLE,
subset="""SELECT id FROM relations
WHERE %s""" % (conf.TAGS_ROUTE_SUBSET))
hroutes = hrel.Routes(self.db, self.segment_table, hiertable)
hroutes.set_num_threads(self.options.numthreads)
self.data_tables = [
self.segment_table,
hiertable,
hroutes,
hposts.GuidePosts(self.db, 'riding', True),
hposts.NetworkNodes(self.db),
]
self.style_tables = [
hstyle.RidingStyleDefault(self.db)
]
# table saving the relation between the routes
hiertable = osgende.RelationHierarchy(self.db,
name=conf.DB_HIERARCHY_TABLE,
subset="""SELECT id FROM relations
WHERE %s""" % (conf.TAGS_ROUTE_SUBSET))
routetable = hrel.Routes(self.db, self.segment_table, hiertable)
routetable.set_num_threads(self.options.numthreads)
self.data_tables = [
self.segment_table,
hiertable,
routetable,
hposts.GuidePosts(self.db, 'hiking'),
hposts.NetworkNodes(self.db),
]
self.style_tables = [
hstyle.HikingStyleDefault(self.db)
]