'primary_link',
                            'secondary',
                            'secondary_link',
                            'tertiary',
                            'road',
                            'path',
                            'track',
                            'service',
                            'footway',
                            'bridleway',
                            'cycleway',
                            'steps',
                            'pedestrian',
                            'living_street',
                            'unclassified',
                            'residential',
                        )
                    })

landusages = Polygons(name='landusages',
                      fields=(
                          ('area', PseudoArea()),
                          ('z_order', ZOrder(['bar', 'cafe'])),
                      ),
                      mapping={
                          'amenity': ('bar', 'cafe'),
                      })

amenities = Points(name='amenities', mapping={
    'amenity': ('bar', 'cafe'),
})
            'village',
            'hamlet',
            'suburb',
            'neighbourhood',
            'locality',
        ),
    },
    fields=(
        ('z_order',
         ZOrder([
             'country',
             'state',
             'region',
             'county',
             'city',
             'town',
             'village',
             'hamlet',
             'suburb',
             'neighbourhood',
             'locality',
         ])),
        ('population', Integer()),
    ),
)

admin = Polygons(
    name='admin',
    mapping={
        'boundary': ('administrative', ),
    },
Exemple #3
0
 ZOrder([
     'pedestrian',
     'footway',
     'playground',
     'park',
     'forest',
     'cemetery',
     'farmyard',
     'farm',
     'farmland',
     'wood',
     'meadow',
     'grass',
     'village_green',
     'recreation_ground',
     'garden',
     'sports_centre',
     'pitch',
     'common',
     'allotments',
     'golf_course',
     'university',
     'school',
     'college',
     'library',
     'fuel',
     'parking',
     'nature_reserve',
     'cinema',
     'theatre',
     'place_of_worship',
     'hospital',
     'scrub',
     'quarry',
     'residential',
     'retail',
     'commercial',
     'industrial',
     'railway',
     'land',
 ])),
Exemple #4
0
            'city',
            'town',
            'village',
            'hamlet',
            'suburb',
            'locality',
        ),
    },
    fields=(
        ('z_order',
         ZOrder([
             'country',
             'state',
             'region',
             'county',
             'city',
             'town',
             'village',
             'hamlet',
             'suburb',
             'locality',
         ])),
        ('population', Integer()),
    ),
)
'''

buildings = Polygons(
  name = 'buildings',
  fields = address_tags,
  mapping = {
    'building': (
Exemple #5
0
        ),
    }
)

landusages = Polygons(
    name = 'landusages',
    with_label_field = True,
    fields = (
        ('name', Name()),
        ('name:en', Name()),
        ('name:de', Name()),
        ('name:ru', Name()),
        ('area', PseudoArea()),
        ('z_order', ZOrder([
            'military',
            'nature_reserve',
            'protected_area',
            'national_park',
        ])),
    ),
    mapping = {
        'landuse': (
            'military',
        ),
        'leisure': (
            'nature_reserve',
            'protected_area',
            'national_park',
        ),
        'boundary': (
            'nature_reserve',
            'protected_area',