optimize database queries - a lot (they were gigantic because they were copy+paste...
authorosm@osm.rrze <osm@osm.rrze.uni-erlangen.de>
Tue, 7 Aug 2012 10:30:38 +0000 (12:30 +0200)
committerosm@osm.rrze <osm@osm.rrze.uni-erlangen.de>
Tue, 7 Aug 2012 10:30:38 +0000 (12:30 +0200)
styles/mapnik-osm-data/rrze-overlay.xml

index bbd8fcd9a44705ffbd80b15db37ea4b8b0faf065..d8841c0d634123da29bbb7c62169bf7980b42f17 100644 (file)
     <StyleName>points</StyleName>
     <Datasource>
       <Parameter name="table">
-      (select way,amenity,shop,tourism,highway,man_made,access,religion,waterway,lock,historic,leisure
+      (select way,amenity,access
       from &prefix;_point
       where amenity is not null
-         or shop is not null
-         or tourism in ('alpine_hut','camp_site','caravan_site','guest_house','hostel','hotel','motel','museum','viewpoint','bed_and_breakfast','information','chalet')
-         or highway in ('bus_stop','traffic_signals','ford')
-         or man_made in ('mast','water_tower')
-         or historic in ('memorial','archaeological_site')
-         or waterway='lock'
-         or lock='yes'
-         or leisure in ('playground','slipway')
       ) as points</Parameter>
       &datasource-settings;
     </Datasource>
     <StyleName>points</StyleName>
     <Datasource>
       <Parameter name="table">
-      (select way,amenity,shop,tourism,highway,man_made,access,religion,waterway,lock,historic,leisure
+      (select way,amenity,access
       from &prefix;_polygon
       where amenity is not null
-         or shop is not null
-         or tourism in ('alpine_hut','camp_site','caravan_site','guest_house','hostel','hotel','motel','museum','viewpoint','bed_and_breakfast','information','chalet')
-         or highway in ('bus_stop','traffic_signals')
-         or man_made in ('mast','water_tower')
-         or historic in ('memorial','archaeological_site')
-         or leisure='playground'
       ) as points</Parameter>
       &datasource-settings;
     </Datasource>
     <StyleName>text</StyleName>
     <Datasource>
       <Parameter name="table">
-      (select way,amenity,shop,access,leisure,landuse,man_made,"natural",place,tourism,ele,name,ref,military,aeroway,waterway,historic,'yes'::text as point
+      (select way,amenity,access,name,ref,'yes'::text as point
        from &prefix;_point
        where amenity is not null
-          or shop in ('supermarket','bakery','clothes','fashion','convenience','doityourself','hairdresser','department_store','butcher','car','car_repair','bicycle','florist')
-          or leisure is not null
-          or landuse is not null
-          or tourism is not null
-          or "natural" is not null
-          or man_made in ('lighthouse','windmill')
-          or place='island'
-          or military='danger_area'
-          or aeroway='gate'
-          or waterway='lock'
-          or historic in ('memorial','archaeological_site')
       ) as text
       </Parameter>
       &datasource-settings;
     <StyleName>text</StyleName>
     <Datasource>
       <Parameter name="table">
-      (select way,aeroway,shop,access,amenity,leisure,landuse,man_made,"natural",place,tourism,NULL as ele,name,ref,military,waterway,historic,'no'::text as point
+      (select way,access,amenity,NULL as ele,name,ref,'no'::text as point
        from &prefix;_polygon
        where amenity is not null
-          or shop in ('supermarket','bakery','clothes','fashion','convenience','doityourself','hairdresser','department_store', 'butcher','car','car_repair','bicycle')
-          or leisure is not null
-          or landuse is not null
-          or tourism is not null
-          or "natural" is not null
-          or man_made in ('lighthouse','windmill')
-          or place='island'
-          or military='danger_area'
-          or historic in ('memorial','archaeological_site')
       ) as text
       </Parameter>
       &datasource-settings;
This page took 0.070033 seconds and 4 git commands to generate.