How to use the routemap.common.conf.settings.WEB_SYMBOLDIR function in routemap

To help you get started, we’ve selected a few routemap examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github waymarkedtrails / waymarked-trails-site / db / src / routemap / riding / db.py View on Github external
def make_shields(self):
        import os
        from routemap.common.conf import settings as conf
        import routemap.common.symbols as syms
        donesyms = set()
        cur = self.db.select("SELECT tags, level FROM %s NATURAL JOIN relations"
                         % (conf.DB_ROUTE_TABLE.fullname))
        for obj in cur:
            sym = syms.make_symbol(osgende.tags.TagStore(obj["tags"]), None, obj["level"], hrel.symboltypes)

            if sym is not None:
                sid = sym.get_id()

                if sid not in donesyms:
                    print "Writing", os.path.join(conf.WEB_SYMBOLDIR, "%s.png" % sym.get_id())
                    sym.write_image(os.path.join(conf.WEB_SYMBOLDIR, "%s.png" % sym.get_id()))
                    donesyms.add(sid)
github waymarkedtrails / waymarked-trails-site / db / src / routemap / hiking / db.py View on Github external
def make_shields(self):
        import os
        from routemap.common.conf import settings as conf
        import routemap.common.symbols as syms
        donesyms = set()
        cur = self.db.select("SELECT tags, country, level FROM %s NATURAL JOIN relations"
                         % (conf.DB_ROUTE_TABLE.fullname))
        for obj in cur:
            sym = syms.make_symbol(osgende.tags.TagStore(obj["tags"]), obj["country"], obj["level"], hrel.symboltypes)

            if sym is not None:
                sid = sym.get_id()

                if sid not in donesyms:
                    print "Writing", os.path.join(conf.WEB_SYMBOLDIR, "%s.png" % sym.get_id())
                    sym.write_image(os.path.join(conf.WEB_SYMBOLDIR, "%s.png" % sym.get_id()))
                    donesyms.add(sid)
github waymarkedtrails / waymarked-trails-site / db / src / routemap / common / mapdb.py View on Github external
def generate_shields(self, symboltypes):
        import os
        from routemap.common.conf import settings as conf
        import routemap.common.symbols as syms
        donesyms = set()
        cur = self.db.select("SELECT tags, country, level FROM %s NATURAL JOIN relations"
                         % (conf.DB_ROUTE_TABLE.fullname))
        for obj in cur:
            sym = syms.make_symbol(obj["tags"], obj["country"], obj["level"], symboltypes)

            if sym is not None:
                sid = sym.get_id()

                if sid not in donesyms:
                    print "Writing", os.path.join(conf.WEB_SYMBOLDIR, "%s.png" % sym.get_id())
                    sym.write_image(os.path.join(conf.WEB_SYMBOLDIR, "%s.png" % sym.get_id()))
                    donesyms.add(sid)
github waymarkedtrails / waymarked-trails-site / db / src / routemap / cycling / db.py View on Github external
def make_shields(self):
        import os
        from routemap.common.conf import settings as conf
        import routemap.common.symbols as syms
        donesyms = set()
        cur = self.db.select("SELECT tags, level FROM %s NATURAL JOIN relations"
                         % (conf.DB_ROUTE_TABLE.fullname))
        for obj in cur:
            sym = syms.make_symbol(osgende.tags.TagStore(obj["tags"]), None, obj["level"], hrel.symboltypes)

            if sym is not None:
                sid = sym.get_id()

                if sid not in donesyms:
                    print "Writing", os.path.join(conf.WEB_SYMBOLDIR, "%s.png" % sym.get_id())
                    sym.write_image(os.path.join(conf.WEB_SYMBOLDIR, "%s.png" % sym.get_id()))
                    donesyms.add(sid)
github waymarkedtrails / waymarked-trails-site / db / src / routemap / hiking / db.py View on Github external
def make_shields(self):
        import os
        from routemap.common.conf import settings as conf
        import routemap.common.symbols as syms
        donesyms = set()
        cur = self.db.select("SELECT tags, country, level FROM %s NATURAL JOIN relations"
                         % (conf.DB_ROUTE_TABLE.fullname))
        for obj in cur:
            sym = syms.make_symbol(osgende.tags.TagStore(obj["tags"]), obj["country"], obj["level"], hrel.symboltypes)

            if sym is not None:
                sid = sym.get_id()

                if sid not in donesyms:
                    print "Writing", os.path.join(conf.WEB_SYMBOLDIR, "%s.png" % sym.get_id())
                    sym.write_image(os.path.join(conf.WEB_SYMBOLDIR, "%s.png" % sym.get_id()))
                    donesyms.add(sid)
github waymarkedtrails / waymarked-trails-site / db / src / routemap / common / mapdb.py View on Github external
def generate_shields(self, symboltypes):
        import os
        from routemap.common.conf import settings as conf
        import routemap.common.symbols as syms
        donesyms = set()
        cur = self.db.select("SELECT tags, country, level FROM %s NATURAL JOIN relations"
                         % (conf.DB_ROUTE_TABLE.fullname))
        for obj in cur:
            sym = syms.make_symbol(obj["tags"], obj["country"], obj["level"], symboltypes)

            if sym is not None:
                sid = sym.get_id()

                if sid not in donesyms:
                    print "Writing", os.path.join(conf.WEB_SYMBOLDIR, "%s.png" % sym.get_id())
                    sym.write_image(os.path.join(conf.WEB_SYMBOLDIR, "%s.png" % sym.get_id()))
                    donesyms.add(sid)
github waymarkedtrails / waymarked-trails-site / db / src / routemap / riding / db.py View on Github external
def make_shields(self):
        import os
        from routemap.common.conf import settings as conf
        import routemap.common.symbols as syms
        donesyms = set()
        cur = self.db.select("SELECT tags, level FROM %s NATURAL JOIN relations"
                         % (conf.DB_ROUTE_TABLE.fullname))
        for obj in cur:
            sym = syms.make_symbol(osgende.tags.TagStore(obj["tags"]), None, obj["level"], hrel.symboltypes)

            if sym is not None:
                sid = sym.get_id()

                if sid not in donesyms:
                    print "Writing", os.path.join(conf.WEB_SYMBOLDIR, "%s.png" % sym.get_id())
                    sym.write_image(os.path.join(conf.WEB_SYMBOLDIR, "%s.png" % sym.get_id()))
                    donesyms.add(sid)
github waymarkedtrails / waymarked-trails-site / db / src / routemap / cycling / db.py View on Github external
def make_shields(self):
        import os
        from routemap.common.conf import settings as conf
        import routemap.common.symbols as syms
        donesyms = set()
        cur = self.db.select("SELECT tags, level FROM %s NATURAL JOIN relations"
                         % (conf.DB_ROUTE_TABLE.fullname))
        for obj in cur:
            sym = syms.make_symbol(osgende.tags.TagStore(obj["tags"]), None, obj["level"], hrel.symboltypes)

            if sym is not None:
                sid = sym.get_id()

                if sid not in donesyms:
                    print "Writing", os.path.join(conf.WEB_SYMBOLDIR, "%s.png" % sym.get_id())
                    sym.write_image(os.path.join(conf.WEB_SYMBOLDIR, "%s.png" % sym.get_id()))
                    donesyms.add(sid)