How to use the routemap.common.symbols.SymbolReference 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 / skating / relations.py View on Github external
first)

    The actualy rendering information is computed seperately. This allows to use
    different rendering styles on the same table. For the moment there is only
    style_default.py.
"""

import os.path

import shapely.ops as sops
import osgende
import conf
import routemap.common.symbols as symbols

symboltypes = (
    symbols.SymbolReference,
)


class Routes(osgende.RelationSegmentRoutes):
    """Preprocessed information about the inline skating routes.

       It contains the following fields:

       * 'name' - the default name, generally taken from name-tag
          however, if the name is entirely in non-latin symbols,
          name:en is prefered if existing
       * 'intname' - collection of translated names
       * 'symbol' - unique name of the computed shield to use
       * 'country' - coutry the route is mainly in (in terms of
                     numbers of sections, TODO check this heuristic)
       * 'network' - special network it belongs to,
github waymarkedtrails / waymarked-trails-site / db / src / routemap / cycling / relations.py View on Github external
The actualy rendering information is computed seperately. This allows to use
    different rendering styles on the same table. For the moment there is only
    style_default.py.
"""

import os.path
import shapely.ops as sops

from osgende import RelationHierarchy,RelationSegments,RelationSegmentRoutes
from osgende.common.postgisconn import PGTable
import conf
import routemap.common.symbols as symbols

symboltypes = (
    symbols.ColorBoxReference,
    symbols.SymbolReference,
)


class Routes(RelationSegmentRoutes):
    """Preprocessed information about the cycling routes.

       It contains the following fields:

       * 'name' - the default name, generally taken from name-tag
          however, if the name is entirely in non-latin symbols,
          name:en is prefered if existing
       * 'intname' - collection of translated names
       * 'symbol' - unique name of the computed shield to use
       * 'country' - coutry the route is mainly in (in terms of
                     numbers of sections, TODO check this heuristic)
       * 'network' - special network it belongs to,
github waymarkedtrails / waymarked-trails-site / db / src / routemap / mtbmap / relations.py View on Github external
The actualy rendering information is computed seperately. This allows to use
    different rendering styles on the same table. For the moment there is only
    style_default.py.
"""

import os.path

import osgende
from osgende.common.postgisconn import PGTable
import conf
import routemap.common.symbols as symbols
import shapely.ops as sops

symboltypes = (
    symbols.SymbolReference,
)


class Routes(osgende.RelationSegmentRoutes):
    """Preprocessed information about the MTB routes.

       It contains the following fields:

       * 'name' - the default name, generally taken from name-tag
          however, if the name is entirely in non-latin symbols,
          name:en is prefered if existing
       * 'intname' - collection of translated names
       * 'symbol' - unique name of the computed shield to use
       * 'country' - coutry the route is mainly in (in terms of
                     numbers of sections, TODO check this heuristic)
       * 'network' - special network it belongs to,
github waymarkedtrails / waymarked-trails-site / db / src / routemap / hiking / relations.py View on Github external
import os.path
from collections import defaultdict

import osgende
import conf
import routemap.common.symbols as symbols
import shapely.ops as sops

symboltypes = (
            symbols.ShieldReference,
            symbols.SwissMobileReference,
            symbols.JelReference,
            symbols.KCTReference,
            symbols.OSMCSymbolReference,
            symbols.SymbolReference
        )


class Routes(osgende.RelationSegmentRoutes):
    """Preprocessed information about the hiking routes.

       It contains the following fields:

       * 'name' - the default name, generally taken from name-tag
          however, if the name is entirely in non-latin symbols,
          name:en is prefered if existing
       * 'intname' - collection of translated names
       * 'symbol' - unique name of the computed shield to use
       * 'country' - coutry the route is mainly in (in terms of
                     numbers of sections, TODO check this heuristic)
       * 'network' - special network it belongs to,
github waymarkedtrails / waymarked-trails-site / db / src / routemap / riding / relations.py View on Github external
The actualy rendering information is computed seperately. This allows to use
    different rendering styles on the same table. For the moment there is only
    style_default.py.
"""

import os.path

import shapely.ops as sops
import osgende
import conf
import routemap.common.clearcache as clearcache
import routemap.common.symbols as symbols

symboltypes = (
    symbols.OSMCSymbolReference,
    symbols.SymbolReference,
)


class Routes(osgende.RelationSegmentRoutes):
    """Preprocessed information about the riding routes.

       It contains the following fields:

       * 'name' - the default name, generally taken from name-tag
          however, if the name is entirely in non-latin symbols,
          name:en is prefered if existing
       * 'intname' - collection of translated names
       * 'symbol' - unique name of the computed shield to use
       * 'country' - coutry the route is mainly in (in terms of
                     numbers of sections, TODO check this heuristic)
       * 'network' - special network it belongs to,