), }) amenities = Points(name='amenities', mapping={ 'amenity': ( 'university', 'school', 'library', 'fuel', 'hospital', 'fire_station', 'police', 'townhall', ), }) roads = UnionView( name='roads', fields=( ('bridge', 0), ('ref', None), ('tunnel', 0), ('oneway', 0), ('layer', 0), ('z_order', 0), ('access', None), ), mappings=[motorways, mainroads, minorroads, railways], )
) drains = LineStrings( name = 'drains', mapping = { 'waterway' : ( 'ditch', 'drain' ) } ) waterway_low = UnionView( name = "waterway_low", fields = ( ('waterway', 0), ), mappings = [rivers] ) waterway_med = UnionView( name = "waterway_med", fields = ( ('waterway',0), ), mappings = [rivers, streams] ) waterway_med = UnionView( name = "waterway_high", fields = ( ('waterway', 0),
where="ST_Area(geometry)>%f" % sqr_meter_to_mapunit(500000), ) waterareas_gen1 = GeneralizedTable( name='waterareas_gen1', tolerance=meter_to_mapunit(50.0), origin=waterareas, where="ST_Area(geometry)>%f" % sqr_meter_to_mapunit(50000), ) roads = UnionView( name='roads', fields=( ('bridge', 0), ('ref', None), ('tunnel', 0), ('oneway', 0), ('z_order', 0), ), mappings=[motorways, mainroads, minorroads, railways], ) roads_gen1 = UnionView( name='roads_gen1', fields=( ('bridge', 0), ('ref', None), ('tunnel', 0), ('oneway', 0), ('z_order', 0), ),
) waterareas_gen1 = GeneralizedTable( name='waterareas_gen1', tolerance=meter_to_mapunit(50.0), origin=waterareas, where="ST_Area(geometry)>%f" % sqr_meter_to_mapunit(50000), ) roads = UnionView( name='roads', fields=( ('bridge', 0), ('ref', None), ('tunnel', 0), ('oneway', 0), ('layer', 0), ('z_order', 0), ('access', None), ), mappings=[motorways, mainroads, minorroads, railways], ) roads_gen1 = UnionView( name='roads_gen1', fields=( ('bridge', 0), ('ref', None), ('tunnel', 0), ('oneway', 0), ('z_order', 0),