Пример #1
0
class Highway(LineStrings):
    fields = (
        ('tunnel', Bool()),
        ('bridge', Bool()),
        ('oneway', Direction()),
        ('ref', String()),
        ('z_order', WayZOrder()),
    )
    field_filter = (('area', Bool()), )
class HighwayArea(Polygons):
    fields = (
        ('tunnel', Bool()),
        ('bridge', Bool()),
        ('oneway', Direction()),
        ('ref', String()),
        ('layer', Integer()),
        ('z_order', WayZOrder()),
        ('access', String()),
    )
Пример #3
0
class Highway(LineStrings):
    fields = (
        ('name', Name()),
        ('name:en', Name()),
        ('name:de', Name()),
        ('name:ru', Name()),
        ('tunnel', Bool()),
        ('bridge', Bool()),
        ('layer', Integer()),
        ('oneway', Direction()),
        ('ref', String()),
        ('access', String()),
        ('service', String()),
        ('z_order', WayZOrder()),
    )
    field_filter = (
        ('area', Bool()),
    )
Пример #4
0
                             'path',
                             'track',
                             'service',
                             'footway',
                             'bridleway',
                             'cycleway',
                             'steps',
                             'pedestrian',
                             'living_street',
                             'unclassified',
                             'residential',
                         )
                     },
                     fields=(('surface', String()), ('tracktype', String()),
                             ('tunnel', Bool()), ('bridge', Bool()),
                             ('oneway', Direction()), ('layer', Integer()),
                             ('z_order', WayZOrder()), ('access', String())))

transport_points = Points(name='transport_points',
                          fields=(('ref', String()), ),
                          mapping={
                              'highway': (
                                  'motorway_junction',
                                  'turning_circle',
                                  'bus_stop',
                              ),
                              'railway': (
                                  'station',
                                  'halt',
                                  'tram_stop',
                                  'crossing',
		'highway': ('pedestrian','cycleway','footway','living_street','track', 'service'),
		'oneway:bicycle' : ('no','yes','-1','1',),
		'route' : ('bicycle'),
		'network' : ('lcn','rcn','ncn',),
		'maxspeed': ('20','30'),
		'operator': ('VNF'),
		'footway': ('crossing')
        },
    fields = (
		('cycleway', String()),
		('cycleway:left', String()),
		('cycleway:right', String()),
		('tracktype', String()),
		('foot', String()),
		('bicycle', String()),
		('oneway', Direction()),
		('oneway:bicycle', Direction()),
		('access', String()),
		('highway', String()),
		('surface', String()),
		('name', String()),
		('maxspeed', Integer()),
		('route', String()),
		('network', String()),
		('area', String()),
		('railway', String()),
		('operator', String()),
		('motor_vehicle', String()),
		('footway', String()),
		('barrier', String()),
	),
Пример #6
0
    ),
    mapping = {
        'highway': (
            'track',
        ),
    }
)

paths = LineStrings(
    name = 'paths',
    fields = (
        ('tunnel', Bool()),
        ('bridge', Bool()),
        ('layer', Integer()),
        ('access', String()),
        ('oneway', Direction()),
        ('z_order', WayZOrder()),
    ),
    field_filter = (
        ('area', Bool()),
    ),
    mapping = {
        'highway': (
            'bridleway',
            'cycleway',
            'path',
            'footway',
            'steps',
        ),
    }
)