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()), )
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()), )
'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': (
'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', ),
'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',
), } ) 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', ),
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',
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',
'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', ])),
# # 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': (
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()), )
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",