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

transport_points = Points(name='transport_points',
                          fields=(('ref', String()), ),
                          mapping={
                              'highway': (
                                  'motorway_junction',
                                  'turning_circle',
                                  'bus_stop',
                              ),
                              'railway': (
                                  'station',
                                  'halt',
                                  'tram_stop',
                                  'crossing',
                                  'level_crossing',
                                  'subway_entrance',
                              ),
                              'aeroway': (
Пример #5
0
            'service',
            'footway',
            'bridleway',
            'cycleway',
            'steps',
            'pedestrian',
            'living_street',
            'unclassified',
            'residential',
    )}
)

transport_points = Points(
    name = 'transport_points',
    fields = (
        ('ref', String()),
    ),
    mapping = {
        'highway': (
            'motorway_junction',
            'turning_circle',
            'bus_stop',
        ),
        'railway': (
            'station',
            'halt',
            'tram_stop',
            'crossing',
            'level_crossing',
            'subway_entrance',
        ),
Пример #6
0
                         'highway': (
                             'road',
                             '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',
Пример #7
0
        ),
    }
)

buildings = Polygons(
    name = 'buildings',
    mapping = {
        'building': (
            '__any__',
    )}
)

transport_points = Points(
    name = 'transport_points',
    fields = (
        ('ref', String()),
    ),
    mapping = {
        'highway': (
            'motorway_junction',
            'turning_circle',
            'bus_stop',
        ),
        'railway': (
            'station',
            'halt',
            'tram_stop',
            'crossing',
            'level_crossing',
            'subway_entrance',
        ),
Пример #8
0
                             'path',
                             'track',
                             'service',
                             'footway',
                             'bridleway',
                             'cycleway',
                             'steps',
                             'pedestrian',
                             'living_street',
                             'unclassified',
                             'residential',
                         )
                     })

transport_points = Points(name='transport_points',
                          fields=(('ref', String()), ),
                          mapping={
                              'highway': (
                                  'motorway_junction',
                                  'turning_circle',
                                  'bus_stop',
                              ),
                              'railway': (
                                  'station',
                                  'halt',
                                  'tram_stop',
                                  'crossing',
                                  'level_crossing',
                                  'subway_entrance',
                              ),
                              'aeroway': (
Пример #9
0
building_parts = Building(
    name = 'building_parts',
    with_label_field = True,
    mapping = {
        'building:part': (
            '__any__',
        ),
    }
)

amenities = Points(
    name='amenities',
    with_type_field = False,
    fields = (
        ('amenity', String()),
        ('shop', String()),
        ('historic', String()),
        ('tourism', String()),
        ('leisure', String()),
        ('religion', String()),
        ('fee', String()),
        ('access', String()),
        ('name', Name()),
        ('name:en', Name()),
        ('name:de', Name()),
        ('name:ru', Name()),
    ),
    mapping = {
        'amenity': (
            'drinking_water',
Пример #10
0
                             'path',
                             'track',
                             'service',
                             'footway',
                             'bridleway',
                             'cycleway',
                             'steps',
                             'pedestrian',
                             'living_street',
                             'unclassified',
                             'residential',
                         )
                     })

transport_points = Points(name='transport_points',
                          fields=(('ref', String()), ),
                          mapping={
                              'highway': (
                                  'motorway_junction',
                                  'turning_circle',
                                  'bus_stop',
                              ),
                              'railway': (
                                  'station',
                                  'halt',
                                  'tram_stop',
                                  'crossing',
                                  'level_crossing',
                                  'subway_entrance',
                              ),
                              'aeroway': (
Пример #11
0
db_conf = Options(
    # db='osmlanduse',
    host='localhost',
    port=5432,
    user='******',
    password='******',
    sslmode='allow',
    prefix='osm_new_',
    proj='epsg:3857',
)

landusages = Polygons(
    name = 'landusages_march18',
    fields = (
        ('area', PseudoArea()),
        ('leaf_type', String()),
        ('leaf_cycle', String()),
    ),
    mapping = {
        'waterway': ('riverbank',),
        'landuse': (
            'basin',
            'reservoir'
            'park',
            'forest',
            'residential',
            'retail',
            'commercial',
            'industrial',
            'railway',
            'cemetery',
Пример #12
0
                             'path',
                             'track',
                             'service',
                             'footway',
                             'bridleway',
                             'cycleway',
                             'steps',
                             'pedestrian',
                             'living_street',
                             'unclassified',
                             'residential',
                         )
                     })

transport_points = Points(name='transport_points',
                          fields=(('ref', String()), ),
                          mapping={
                              'highway': (
                                  'motorway_junction',
                                  'turning_circle',
                                  'bus_stop',
                              ),
                              'railway': (
                                  'station',
                                  'halt',
                                  'tram_stop',
                                  'crossing',
                                  'level_crossing',
                                  'subway_entrance',
                              ),
                              'aeroway': (
Пример #13
0
     'place': (
         'country',
         'state',
         'region',
         'county',
         'city',
         'town',
         'village',
         'hamlet',
         'suburb',
         'neighbourhood',
         'locality',
     ),
 },
 fields=(
     ('name', String()),
     ('name:en', String()),
     ('z_order',
      ZOrder([
          'country',
          'state',
          'region',
          'county',
          'city',
          'town',
          'village',
          'hamlet',
          'suburb',
          'neighbourhood',
          'locality',
      ])),
Пример #14
0
                             'path',
                             'track',
                             'service',
                             'footway',
                             'bridleway',
                             'cycleway',
                             'steps',
                             'pedestrian',
                             'living_street',
                             'unclassified',
                             'residential',
                         )
                     })

transport_points = Points(name='transport_points',
                          fields=(('ref', String()), ),
                          mapping={
                              'highway': (
                                  'motorway_junction',
                                  'turning_circle',
                                  'bus_stop',
                              ),
                              'railway': (
                                  'station',
                                  'halt',
                                  'tram_stop',
                                  'crossing',
                                  'level_crossing',
                                  'subway_entrance',
                              ),
                              'aeroway': (
Пример #15
0
# # You can prefer a language other than the data's local language
# set_default_name_type(LocalizedName(['name:en', 'int_name', 'name']))

db_conf = Options(
    db='imposm',
    host='localhost',
    port=5432,
    user='******',
    password='******',
    sslmode='allow',
    prefix='osm_new_',
    proj='epsg:900913',
)

address_tags = (
    ('addr:housenumber', String()),
    ('addr:housename', String()),
    ('addr:street', String()),
    ('addr:place', String()),
    ('addr:city', String()),
    ('addr:country', String()),
    ('addr:full', String()),
    ('addr:hamlet', String()),
    ('addr:subdistrict', String()),
    ('addr:district', String()),
    ('addr:province', String()),
    ('addr:state', String()),
)

places = Points(
    name='places',
                               'track',
                               'service',
                               'footway',
                               'bridleway',
                               'cycleway',
                               'steps',
                               'pedestrian',
                               'living_street',
                               'unclassified',
                               'residential',
                           ),
                           'area': ('yes', 'true')
                       })

transport_points = Points(name='transport_points',
                          fields=(('ref', String()), ),
                          mapping={
                              'highway': (
                                  'motorway_junction',
                                  'turning_circle',
                                  'bus_stop',
                              ),
                              'railway': (
                                  'station',
                                  'halt',
                                  'tram_stop',
                                  'crossing',
                                  'level_crossing',
                                  'subway_entrance',
                              ),
                              'aeroway': (
Пример #17
0
class Building(Polygons):
    fields = (
        ('building', String()),
        ('amenity', String()),
        ('shop', String()),
        ('historic', String()),
        ('tourism', String()),
        ('religion', String()),
        ('fee', String()),
        ('access', String()),
        ('name', Name()),
        ('name:en', Name()),
        ('name:de', Name()),
        ('name:ru', Name()),
        ('building:parts', String()),
        ('height', Height()),
        ('min_height', Height()),
        ('building:levels', Integer()),
        ('building:min_level', Integer()),
        ('building:colour', String()),
        ('roof:colour', String()),
        ('building:material', String()),
        ('roof:material', String()),
        ('addr:housenumber', String()),
    )
Пример #18
0
    proj='epsg:900913',
)

amenities = Points(
    name='amenities',
    mapping = {
        'amenity': (
	    	"bicycle_parking",
	    	"bicycle_rental",
        ),
		'bicycle_parking': ( 'shed', 'building'),
		'railway': ('halt', 'station'),
		'barrier': ("cycle_barrier")
	},
	fields = (
		('access', String()),
		('bicycle_parking', String()),
		('operator', String()),
		('barrier', String()),
		('cycleway', String()),
		('railway', String()),
		('network', String())
	),
)

amenitiesbuilding = Polygons(
    name='amenitiesbuilding',
    mapping = {
        'amenity': (
	    "bicycle_parking",
	    "bicycle_rental",
Пример #19
0
                             'path',
                             'track',
                             'service',
                             'footway',
                             'bridleway',
                             'cycleway',
                             'steps',
                             'pedestrian',
                             'living_street',
                             'unclassified',
                             'residential',
                         )
                     })

transport_points = Points(name='transport_points',
                          fields=(('ref', String()), ),
                          mapping={
                              'highway': (
                                  'motorway_junction',
                                  'turning_circle',
                                  'bus_stop',
                              ),
                              'railway': (
                                  'station',
                                  'halt',
                                  'tram_stop',
                                  'crossing',
                                  'level_crossing',
                                  'subway_entrance',
                              ),
                              'aeroway': (