Open Infrastructure Map, a view of infrastructure data in OpenStreetMap
Construction fixes
Russ Garrett2ac4cc3af09d
diff --git a/views.sql b/views.sqlindex 0c07ee8..2fc78b5 100644--- a/views.sql+++ b/views.sql@@ -26,7 +26,7 @@ CREATE MATERIALIZED VIEW power_plant_relation AS(rel.tags -> 'name') AS name, rel.output, rel.source, rel.tags, rel.constructionFROM osm_power_plant_relation as rel, osm_power_plant_relation_member as memWHERE mem.osm_id = rel.osm_id- GROUP BY rel.osm_id, rel.tags -> 'name', rel.output, rel.source, rel.tags;+ GROUP BY rel.osm_id, rel.tags -> 'name', rel.output, rel.source, rel.tags, rel.construction;CREATE INDEX power_plant_relation_geom ON power_plant_relation USING GIST (geometry);